summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-07-27 16:48:00 +0100
committerAlan Pearce2014-07-27 16:48:00 +0100
commit6c8782b1bbd6200a3dcde9219bf0330090dd8b3e (patch)
tree4db05c6650e2084a8d0eb350daf25e989db728b5 /tag-emacs
parentc9994d8bda08e4a9f582c07808122a8362431370 (diff)
downloaddotfiles-6c8782b1bbd6200a3dcde9219bf0330090dd8b3e.tar.lz
dotfiles-6c8782b1bbd6200a3dcde9219bf0330090dd8b3e.tar.zst
dotfiles-6c8782b1bbd6200a3dcde9219bf0330090dd8b3e.zip
Emacs: Rename lisp-common-mode-hook
Make it the same style as c-mode-common-hook
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 0ea80fb..b447b56 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -17,7 +17,7 @@
      (setq mode-name ,new-name)))
 
 ;;; 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
+(defcustom lisp-mode-common-hook nil
   "Hook run when entering any Lisp mode."
   :type 'hook
   :group 'lisp)
@@ -917,7 +917,7 @@
           (defun autopair-off ()
             (autopair-mode -1))
           (add-hook 'web-mode-hook #'autopair-off)
-          (add-hook 'lisp-common-mode-hook #'autopair-off)
+          (add-hook 'lisp-mode-common-hook #'autopair-off)
           (setq autopair-blink nil
                 autopair-skip-whitespace nil)))
 
@@ -971,7 +971,7 @@
   :diminish "()"
   :commands (paredit-mode)
   :init (progn
-          (add-hook 'lisp-common-mode-hook #'enable-paredit-mode)
+          (add-hook 'lisp-mode-common-hook #'enable-paredit-mode)
           (put #'paredit-forward-delete 'delete-selection 'supersede)
           (put #'paredit-backward-delete 'delete-selection 'supersede)
           (add-hook 'minibuffer-setup-hook #'conditionally-enable-paredit-mode)
@@ -1013,7 +1013,7 @@
 ;;;; Lisps
 
 (defun ap/lisp-setup ()
-  (run-hooks 'lisp-common-mode-hook)
+  (run-hooks 'lisp-mode-common-hook)
   (setq indent-tabs-mode nil)
   (local-set-key (kbd "RET") #'paredit-newline))
 
@@ -1043,13 +1043,13 @@
   :diminish " Λ"
   :defer t
   :init (progn
-          (add-hook 'lisp-common-mode-hook #'turn-on-redshank-mode)))
+          (add-hook 'lisp-mode-common-hook #'turn-on-redshank-mode)))
 
 (req-package ielm
   :defer t
   :config (progn
             (add-hook 'ielm-mode-hook (lambda ()
-                                        (run-hooks 'lisp-common-mode-hook)))))
+                                        (run-hooks 'lisp-mode-common-hook)))))
 
 (req-package slime
   :commands (slime)