all repos — nixfiles @ b17e1928f120ba559929754a26e77b0c04d0aeb9

System and user configuration, managed by nix and home-manager

Emacs: improve configuration of common-lisp mode
Alan Pearce alan@alanpearce.co.uk
Mon, 29 Jul 2013 14:10:02 +0100
commit

b17e1928f120ba559929754a26e77b0c04d0aeb9

parent

72aa9219773cb0717c4f27a28056c4fef5ce2e6a

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M emacs/init.elemacs/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