lang/emacs-lisp: refactor macrostep config
This commit is contained in:
parent
73d083b1fa
commit
3b4aca6270
1 changed files with 16 additions and 14 deletions
|
@ -77,24 +77,26 @@
|
||||||
(after! slime (require 'slime-fuzzy))
|
(after! slime (require 'slime-fuzzy))
|
||||||
|
|
||||||
|
|
||||||
(after! macrostep
|
;; `macrostep'
|
||||||
(map! :map macrostep-keymap
|
(map! :after macrostep
|
||||||
:n "RET" #'macrostep-expand
|
:map macrostep-keymap
|
||||||
:n "e" #'macrostep-expand
|
:n "RET" #'macrostep-expand
|
||||||
:n "u" #'macrostep-collapse
|
:n "e" #'macrostep-expand
|
||||||
:n "c" #'macrostep-collapse
|
:n "u" #'macrostep-collapse
|
||||||
|
:n "c" #'macrostep-collapse
|
||||||
|
|
||||||
:n "TAB" #'macrostep-next-macro
|
:n "TAB" #'macrostep-next-macro
|
||||||
:n "n" #'macrostep-next-macro
|
:n "n" #'macrostep-next-macro
|
||||||
:n "J" #'macrostep-next-macro
|
:n "J" #'macrostep-next-macro
|
||||||
|
|
||||||
:n "S-TAB" #'macrostep-prev-macro
|
:n "S-TAB" #'macrostep-prev-macro
|
||||||
:n "K" #'macrostep-prev-macro
|
:n "K" #'macrostep-prev-macro
|
||||||
:n "p" #'macrostep-prev-macro
|
:n "p" #'macrostep-prev-macro
|
||||||
|
|
||||||
:n "q" #'macrostep-collapse-all
|
:n "q" #'macrostep-collapse-all
|
||||||
:n "C" #'macrostep-collapse-all)
|
:n "C" #'macrostep-collapse-all)
|
||||||
|
|
||||||
|
(after! evil
|
||||||
;; `evil-normalize-keymaps' seems to be required for macrostep or it won't
|
;; `evil-normalize-keymaps' seems to be required for macrostep or it won't
|
||||||
;; apply for the very first invocation
|
;; apply for the very first invocation
|
||||||
(add-hook 'macrostep-mode-hook #'evil-normalize-keymaps))
|
(add-hook 'macrostep-mode-hook #'evil-normalize-keymaps))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue