Emacs: improve configuration of common-lisp mode
Alan Pearce alan@alanpearce.co.uk
Mon, 29 Jul 2013 14:10:02 +0100
1 files changed, 6 insertions(+), 0 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -907,10 +907,16 @@ (run-hooks 'lisp-common-mode-hook) (setq indent-tabs-mode nil) (local-set-key (kbd "RET") #'paredit-newline)) +(defun set-common-lisp-indentation () + (set (make-local-variable 'lisp-indent-function) + #'common-lisp-indent-function)) + (add-hook 'emacs-lisp-mode-hook #'ap/lisp-setup) (add-hook 'emacs-lisp-mode-hook #'turn-on-eldoc-mode) (add-hook 'scheme-mode-hook #'ap/lisp-setup) +(add-hook 'lisp-mode-hook #'ap/lisp-setup) +(add-hook 'lisp-mode-hook #'set-common-lisp-indentation) (use-package bytecomp :defer t