[emacs] Add new lisp hooks

This commit is contained in:
Correl Roush 2014-05-14 08:12:39 -04:00
parent 7cf6340438
commit 078d65d00b
2 changed files with 18 additions and 2 deletions

View file

@ -38,3 +38,8 @@
;; Common Lisp
;; (depends-on "slime")
;; (depends-on "slime-repl")
;; Lisp / Scheme
(depends-on "paredit")
(depends-on "rainbow-delimiters")
(depends-on "rainbow-identifiers")

View file

@ -4,5 +4,16 @@
(setq inferior-lisp-program "clisp")
;; Paredit
(eval-after-load "paredit" '(add-hook 'lisp-mode #'enable-paredit-mode))
(mapcar (lambda (mode-hook)
(eval-after-load "paredit" `(add-hook ',mode-hook #'enable-paredit-mode))
(eval-after-load "rainbow-delimiters" `(add-hook ',mode-hook #'rainbow-delimiters-mode))
(eval-after-load "rainbow-identifiers" `(add-hook ',mode-hook #'rainbow-identifiers-mode))
(add-hook mode-hook (lambda ()
(show-paren-mode)
(electric-indent-mode 1)))
)
'(lisp-mode-hook
emacs-lisp-mode-hook
scheme-mode-hook
lfe-mode-hook))