summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-07-29 14:10:02 +0100
committerAlan Pearce2013-07-29 14:10:02 +0100
commitb17e1928f120ba559929754a26e77b0c04d0aeb9 (patch)
tree5e31843b4991aafc096c7ec4f8029f249e1585eb
parent72aa9219773cb0717c4f27a28056c4fef5ce2e6a (diff)
downloadnixfiles-b17e1928f120ba559929754a26e77b0c04d0aeb9.tar.lz
nixfiles-b17e1928f120ba559929754a26e77b0c04d0aeb9.tar.zst
nixfiles-b17e1928f120ba559929754a26e77b0c04d0aeb9.zip
Emacs: improve configuration of common-lisp mode
-rw-r--r--emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 26defe92..1278c556 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -907,10 +907,16 @@ Also returns nil if pid is nil."
   (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