summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-06-14 10:24:51 -0300
committerLeonardo Santiago <[email protected]>2024-06-14 10:24:51 -0300
commit1881d173ceb8fa57dfaf3ec16c469adce9881a76 (patch)
treed6148c7a06a4760a7854008ce0f9f952fba9d1ad /modules
parentdf1c309606797a8ed2e41a6d85bb9987a0b8b01e (diff)
update stuff
Diffstat (limited to 'modules')
-rw-r--r--modules/emacs/README.org36
-rw-r--r--modules/emacs/emacs.nix2
2 files changed, 21 insertions, 17 deletions
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index 4b9c6dd..92044b2 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -23,6 +23,8 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
(setq ring-bell-function 'ignore)
(setq-default indent-tabs-mode nil)
+
+(setq window-combination-resize t)
#+end_src
** Theme and font
@@ -49,6 +51,13 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
#+end_src
* Utility
+** Searching
+#+begin_src emacs-lisp :tangle yes
+(use-package rg)
+
+(setq isearch-lazy-count t)
+(setq isearch-lazy-highlight t)
+#+end_src
** Age encryption
Configuration to automagically open age files, and to encrypt them correctly to all my machines.
#+begin_src emacs-lisp :tangle yes
@@ -75,11 +84,9 @@ Configuration to automagically open age files, and to encrypt them correctly to
** All the Icons
Works through nixosModules.
#+begin_src emacs-lisp :tangle yes
-(use-package all-the-icons
- :if (display-graphic-p))
+(use-package all-the-icons)
(use-package all-the-icons-completion
- :if (display-graphic-p)
:after all-the-icons
:hook (marginalia-mode . all-the-icons-completion-mode))
#+end_src
@@ -110,20 +117,17 @@ To interact with gitlab and github.
** Vertico, Orderless, Marginalia
Pretty minibuffer support
#+begin_src emacs-lisp :tangle yes
- (use-package vertico
- :config (vertico-mode))
-
- (use-package orderless
- :custom
- (completion-styles '(orderless basic))
- (completion-category-defaults nil)
- (completion-category-overrides '((file (styles basic partial-completion)))))
+(use-package vertico
+ :config (vertico-mode))
- (use-package marginalia
- :config (marginalia-mode))
+(use-package orderless
+ :custom
+ (completion-styles '(orderless basic))
+ (completion-category-defaults nil)
+ (completion-category-overrides '((file (styles basic partial-completion)))))
- (use-package ctrlf
- :config (ctrlf-mode +1))
+(use-package marginalia
+ :config (marginalia-mode))
#+end_src
** Projects
#+begin_src emacs-lisp :tangle yes
@@ -217,7 +221,7 @@ Add support for ansi escape codes in compilation
:custom (compilation-environment '("TERM=xterm-256color")))
(defun my/advice-compilation-filter (f proc string)
(funcall f proc (xterm-color-filter string)))
-(advice-add 'compilation-filter :around #'my/advice-compilation-filter)
+(add-hook 'compilation-filter-hook #'my/advice-compilation-filter)
#+end_src
** Pdf reader
diff --git a/modules/emacs/emacs.nix b/modules/emacs/emacs.nix
index a4e1722..bb0626b 100644
--- a/modules/emacs/emacs.nix
+++ b/modules/emacs/emacs.nix
@@ -7,8 +7,8 @@ let
pylsp-mypy
])))
nil
- rust-analyzer
parallel
+ ripgrep
];
org-tangle-elisp-blocks = (pkgs.callPackage ./org.nix {inherit pkgs; from-elisp = inputs.from-elisp;}).org-tangle ({ language, flags } :
let is-elisp = (language == "emacs-lisp") || (language == "elisp");