summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-01-02 14:26:32 +0100
committerAlan Pearce2020-01-02 14:26:32 +0100
commit65db313fe68326d95ad3a7f4bf1ada08b48de8a8 (patch)
tree8bcc2dabb9f80cc0e46e8766c7ca671a204e009c /user
parentf9dad789bc575eac04c894e64eba9dcf85e960d8 (diff)
downloadnixfiles-65db313fe68326d95ad3a7f4bf1ada08b48de8a8.tar.lz
nixfiles-65db313fe68326d95ad3a7f4bf1ada08b48de8a8.tar.zst
nixfiles-65db313fe68326d95ad3a7f4bf1ada08b48de8a8.zip
Emacs: bind C-a/C-q to change number at point like vim
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el6
-rw-r--r--user/settings/emacs.nix1
2 files changed, 7 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 5af2709c..c425d723 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -357,6 +357,12 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :ghook ('(magit-mode-hook git-rebase-mode-hook) #'turn-off-evil-quickscope-mode)
   :config (global-evil-quickscope-mode +1))
 
+(use-package evil-numbers
+  :after evil
+  :general (:states '(normal visual)
+                    "C-a" #'evil-numbers/inc-at-pt
+                    "C-q" #'evil-numbers/dec-at-pt))
+
 (use-package evil-org
   :after org
   :commands (evil-org-set-key-theme)
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index a16a2e14..2ce508f9 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -105,6 +105,7 @@ in
       evil-magit
       evil-matchit
       evil-mu4e
+      evil-numbers
       evil-org
       evil-quickscope
       evil-space