From db47cead53ad95056af7feba19b4b48294d6233a Mon Sep 17 00:00:00 2001 From: Tu Do Date: Tue, 5 May 2015 10:06:57 +0700 Subject: [PATCH] [Fix Smantic layer] Load srefactor-lisp Otherwise the symbol definition is void and the commands can't be executed. --- contrib/semantic/packages.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/semantic/packages.el b/contrib/semantic/packages.el index 913e701c8..2739cb05b 100644 --- a/contrib/semantic/packages.el +++ b/contrib/semantic/packages.el @@ -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)