Move emacs-lisp init hook to after dependencies
This commit is contained in:
parent
7d3df65cb0
commit
8ad259901d
@ -2044,20 +2044,6 @@ reference to the jedi-core package.
|
|||||||
(switch-to-buffer buffer)))
|
(switch-to-buffer buffer)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** emacs-lisp
|
**** 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
|
***** elisp-slime-nav
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package elisp-slime-nav
|
(use-package elisp-slime-nav
|
||||||
@ -2154,6 +2140,20 @@ Taken from http://endlessparentheses.com/eval-result-overlays-in-emacs-lisp.html
|
|||||||
(end-of-defun)
|
(end-of-defun)
|
||||||
(point)))))
|
(point)))))
|
||||||
#+END_SRC
|
#+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
|
***** Keybinds
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(emit-compose imalison:copy-eval-last-sexp
|
(emit-compose imalison:copy-eval-last-sexp
|
||||||
|
Loading…
Reference in New Issue
Block a user