From bb4c77208d25ec4325f24af026271bae8ccdcca1 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Wed, 22 Oct 2025 13:30:05 +0530 Subject: [PATCH] even more changes add isearch count support to evil add highlight-indent-guides-mode Signed-off-by: Amneesh Singh --- home/natto/config/emacs/config.org | 17 ++++++++++++++--- home/natto/emacs.nix | 14 ++++++++++++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/home/natto/config/emacs/config.org b/home/natto/config/emacs/config.org index 7749c60..bd53502 100644 --- a/home/natto/config/emacs/config.org +++ b/home/natto/config/emacs/config.org @@ -34,7 +34,9 @@ scroll-step 1 display-line-numbers-type 'relative confirm-kill-processes nil - inhibit-startup-screen t) + inhibit-startup-screen t + isearch-lazy-count t + lazy-count-prefix-format "[%s/%s] ") (setq-default tab-width 2 indent-tabs-mode nil) #+end_src @@ -78,6 +80,15 @@ (dark-theme t)) #+end_src +*** Indent guides +#+begin_src emacs-lisp +(use-package highlight-indent-guides + :config + (setq highlight-indent-guides-method 'column) + :hook + (prog-mode . highlight-indent-guides-mode)) +#+end_src + ** Minibuffer Enable vertico #+begin_src emacs-lisp @@ -544,7 +555,8 @@ Stolen from [[https://www.reddit.com/r/emacs/comments/ft84xy/run_shell_command_i * Keybinds -** Colemak translations +** General +*** Colemak translations not using this anymore #+begin_src emacs-lisp :tangle no (use-package evil-colemak-basics @@ -554,7 +566,6 @@ not using this anymore (global-evil-colemak-basics-mode)) #+end_src -** General *** Misc binds #+begin_src emacs-lisp (use-package general diff --git a/home/natto/emacs.nix b/home/natto/emacs.nix index 6f20e7d..e4553aa 100644 --- a/home/natto/emacs.nix +++ b/home/natto/emacs.nix @@ -24,11 +24,21 @@ in alwaysEnsure = true; alwaysTangle = true; defaultInitFile = true; - extraEmacsPackages = - epkgs: with epkgs; [ + extraEmacsPackages = epkgs: with epkgs; [ use-package (tree-sitter-langs.withPlugins (_: tree-sitter-langs.plugins)) ]; + + override = final: prev: { + evil = prev.melpaPackages.evil.overrideAttrs(_: { + src = pkgs.fetchFromGitHub { + owner = "natto1784"; + repo = "evil"; + rev = "isearch-lazy-count"; + sha256 = "sha256-YqXoqPqOWRvszzktb0MYHMe590mzTQxCMgBloy3MHkQ="; + }; + }); + }; }; }; services.emacs = {