From 8ad259901d6e9f657c6414481a91575d4f33de1a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 3 Sep 2016 16:42:44 -0700 Subject: [PATCH] Move emacs-lisp init hook to after dependencies --- dotfiles/emacs.d/README.org | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index e6460400..2b7b8a0b 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2044,20 +2044,6 @@ reference to the jedi-core package. (switch-to-buffer buffer))) #+END_SRC **** emacs-lisp -***** Init hook -#+BEGIN_SRC emacs-lisp -(defvar imalison:check-parens nil) - -(defun imalison:maybe-check-parens () - (if imalison:check-parens - (check-parens))) - -(defun imalison:emacs-lisp-hook () - (elisp-slime-nav-mode t) - (add-hook 'write-file-functions 'imalison:maybe-check-parens nil t)) - -(add-hook 'emacs-lisp-mode-hook 'imalison:emacs-lisp-hook) -#+END_SRC ***** elisp-slime-nav #+BEGIN_SRC emacs-lisp (use-package elisp-slime-nav @@ -2154,6 +2140,20 @@ Taken from http://endlessparentheses.com/eval-result-overlays-in-emacs-lisp.html (end-of-defun) (point))))) #+END_SRC +***** Init hook +#+BEGIN_SRC emacs-lisp +(defvar imalison:check-parens nil) + +(defun imalison:maybe-check-parens () + (if imalison:check-parens + (check-parens))) + +(defun imalison:emacs-lisp-hook () + (elisp-slime-nav-mode t) + (add-hook 'write-file-functions 'imalison:maybe-check-parens nil t)) + +(add-hook 'emacs-lisp-mode-hook 'imalison:emacs-lisp-hook) +#+END_SRC ***** Keybinds #+BEGIN_SRC emacs-lisp (emit-compose imalison:copy-eval-last-sexp