Emacs: bind C-a/C-q to change number at point like vim
Alan Pearce alan@alanpearce.eu
Thu, 02 Jan 2020 14:26:32 +0100
2 files changed, 7 insertions(+), 0 deletions(-)
M user/emacs/.emacs.d/init.el → user/emacs/.emacs.d/init.el
@@ -357,6 +357,12 @@ :commands (evil-quickscope-mode) :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)
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -105,6 +105,7 @@ evil-ledger evil-magit evil-matchit evil-mu4e + evil-numbers evil-org evil-quickscope evil-space