all repos — nixfiles @ 330f2dd9088074f8e0d24ecbfa497808ff32d50b

System and user configuration, managed by nix and home-manager

emacs: add more typical keybinds for common actions

Alan Pearce
commit

330f2dd9088074f8e0d24ecbfa497808ff32d50b

parent

9019d56084c488b902bc37d92c069a7cff057d9b

1 file changed, 7 insertions(+), 2 deletions(-)

changed files
M user/emacs/init.eluser/emacs/init.el
@@ -463,7 +463,8 @@ (add-to-list 'evil-emacs-state-modes 'eshell-mode)
(evil-mode +1)) :general (:states 'motion - "C-;" #'evil-avy-goto-line) + "C-;" #'evil-avy-goto-line + "C-<tab>" #'evil-switch-to-windows-last-buffer) (:states 'normal ";" #'evil-ex) (:states '(normal)
@@ -1043,7 +1044,8 @@
;;; Projects (use-package project - :bind ("s-p" #'project-find-file) + :bind (("s-p" . #'project-find-file) + ("s-o" . #'project-switch-project)) :general (:keymaps 'project-prefix-map "s" #'project-search) :config (progn
@@ -1080,6 +1082,9 @@ :defer 5
:commands (magit-status magit-dispatch) :general ([remap project-vc-dir] #'magit-project-status) (:keymaps 'project-prefix-map "m" #'magit-project-status) + (:keymaps 'magit-mode-map "z" nil) + (:keymaps 'magit-status-mode-map "z" #'magit-stash) + (:keymaps 'magit-section-mode-map "C-<tab>" nil) :config (progn (add-to-list 'magit-git-environment "NO_COLOR=1") (with-eval-after-load 'evil-ex