mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[emacs] Add new lisp hooks
This commit is contained in:
parent
7cf6340438
commit
078d65d00b
2 changed files with 18 additions and 2 deletions
|
@ -38,3 +38,8 @@
|
||||||
;; Common Lisp
|
;; Common Lisp
|
||||||
;; (depends-on "slime")
|
;; (depends-on "slime")
|
||||||
;; (depends-on "slime-repl")
|
;; (depends-on "slime-repl")
|
||||||
|
|
||||||
|
;; Lisp / Scheme
|
||||||
|
(depends-on "paredit")
|
||||||
|
(depends-on "rainbow-delimiters")
|
||||||
|
(depends-on "rainbow-identifiers")
|
||||||
|
|
|
@ -4,5 +4,16 @@
|
||||||
|
|
||||||
(setq inferior-lisp-program "clisp")
|
(setq inferior-lisp-program "clisp")
|
||||||
|
|
||||||
;; Paredit
|
(mapcar (lambda (mode-hook)
|
||||||
(eval-after-load "paredit" '(add-hook 'lisp-mode #'enable-paredit-mode))
|
(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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue