[Fix Smantic layer] Load srefactor-lisp

Otherwise the symbol definition is void and the commands can't be
executed.
This commit is contained in:
Tu Do 2015-05-05 10:06:57 +07:00 committed by syl20bnr
parent 4a9083a109
commit db47cead53

View file

@ -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)