summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-06-08 13:34:44 +0100
committerAlan Pearce2013-06-08 13:34:44 +0100
commit840c6f683c5fa5f41b95d254e3a87aa245630160 (patch)
tree5ccd28f4106133e532e9173704b32400712d37ee
parente4760e1c9358c48887ff47f5a4b28ebc30328471 (diff)
downloadnixfiles-840c6f683c5fa5f41b95d254e3a87aa245630160.tar.lz
nixfiles-840c6f683c5fa5f41b95d254e3a87aa245630160.tar.zst
nixfiles-840c6f683c5fa5f41b95d254e3a87aa245630160.zip
Emacs: add lisp-common-mode-hook to allow cleaner setup of Lisp modes
-rw-r--r--emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 65a2501e..6a370309 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -9,6 +9,12 @@
       user-full-name "Alan Pearce"
       custom-file "~/.emacs.d/custom.el")
 
+;;; Allow lisps to use a common setup. I don't know why they don't have some lispy mode as their parent, but this is close enough
+(defcustom lisp-common-mode-hook nil
+  "Hook run when entering any Lisp mode."
+  :type 'hook
+  :group 'lisp)
+
 ;;;; Environment & Location
 
 (defun env/get-location ()