diff --git a/config.org b/config.org index 8be6e29..1ccb19c 100644 --- a/config.org +++ b/config.org @@ -509,15 +509,22 @@ Exclude some dirs from spamming recentf #+end_src * Evil +See also +https://github.com/noctuid/evil-guide + +Use C-z (evil-toggle-key) to switch between evil and emacs keybindings, +in case evil is messing something up. #+BEGIN_SRC emacs-lisp (use-package evil :ensure t - :defer .1 ;; don't block emacs when starting, load evil immediately after startup + :defer .1 :custom (evil-want-C-i-jump nil) ;; prevent evil from blocking TAB in org tree expanding (evil-want-integration t) (evil-want-keybinding nil) :config + ;; example for using emacs default key map in a certain mode + ;; (evil-set-initial-state 'dired-mode 'emacs) (evil-mode 1)) #+END_SRC @@ -617,15 +624,15 @@ Exclude some dirs from spamming recentf * General (key mapper) #+BEGIN_SRC emacs-lisp (use-package general - :ensure t) - -(general-define-key - :states 'normal - :keymaps 'imenu-list-major-mode-map - "RET" '(imenu-list-goto-entry :which-key "goto") - "TAB" '(hs-toggle-hiding :which-key "collapse") - "d" '(imenu-list-display-entry :which-key "show") - "q" '(imenu-list-quit-window :which-key "quit")) + :ensure t + :config + (general-define-key + :states 'normal + :keymaps 'imenu-list-major-mode-map + "RET" '(imenu-list-goto-entry :which-key "goto") + "TAB" '(hs-toggle-hiding :which-key "collapse") + "d" '(imenu-list-display-entry :which-key "show") + "q" '(imenu-list-quit-window :which-key "quit"))) #+END_SRC * avy