[Fix Smantic layer] Load srefactor-lisp
Otherwise the symbol definition is void and the commands can't be executed.
This commit is contained in:
parent
4a9083a109
commit
db47cead53
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ which require an initialization must be listed explicitly in the list.")
|
|||
;; enable specific major mode setup before it can be used
|
||||
;; properly. For now, only Emacs Lisp.
|
||||
(when (eq major-mode 'emacs-lisp-mode)
|
||||
(use-package srefactor-lisp
|
||||
:commands (srefactor-lisp-format-buffer
|
||||
srefactor-lisp-format-defun
|
||||
srefactor-lisp-format-sexp
|
||||
srefactor-lisp-one-line))
|
||||
(evil-leader/set-key-for-mode 'emacs-lisp-mode "mfb" 'srefactor-lisp-format-buffer)
|
||||
(evil-leader/set-key-for-mode 'emacs-lisp-mode "mfd" 'srefactor-lisp-format-defun)
|
||||
(evil-leader/set-key-for-mode 'emacs-lisp-mode "mfr" 'srefactor-lisp-format-sexp)
|
||||
|
|
Reference in a new issue