|
@ -509,15 +509,22 @@ Exclude some dirs from spamming recentf |
|
|
#+end_src |
|
|
#+end_src |
|
|
|
|
|
|
|
|
* Evil |
|
|
* 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 |
|
|
#+BEGIN_SRC emacs-lisp |
|
|
(use-package evil |
|
|
(use-package evil |
|
|
:ensure t |
|
|
:ensure t |
|
|
:defer .1 ;; don't block emacs when starting, load evil immediately after startup |
|
|
|
|
|
|
|
|
:defer .1 |
|
|
:custom |
|
|
:custom |
|
|
(evil-want-C-i-jump nil) ;; prevent evil from blocking TAB in org tree expanding |
|
|
(evil-want-C-i-jump nil) ;; prevent evil from blocking TAB in org tree expanding |
|
|
(evil-want-integration t) |
|
|
(evil-want-integration t) |
|
|
(evil-want-keybinding nil) |
|
|
(evil-want-keybinding nil) |
|
|
:config |
|
|
:config |
|
|
|
|
|
;; example for using emacs default key map in a certain mode |
|
|
|
|
|
;; (evil-set-initial-state 'dired-mode 'emacs) |
|
|
(evil-mode 1)) |
|
|
(evil-mode 1)) |
|
|
#+END_SRC |
|
|
#+END_SRC |
|
|
|
|
|
|
|
@ -617,15 +624,15 @@ Exclude some dirs from spamming recentf |
|
|
* General (key mapper) |
|
|
* General (key mapper) |
|
|
#+BEGIN_SRC emacs-lisp |
|
|
#+BEGIN_SRC emacs-lisp |
|
|
(use-package general |
|
|
(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 |
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
* avy |
|
|
* avy |
|
|