summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorHelmut Eller <eller.helmut@gmail.com>2020-01-22 14:18:17 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-01-22 14:18:17 +0100
commit0c9da50e96108589c1cac5e25a3627c25a484bc9 (patch)
treeb7467170a2b4d11c937a0653915758c5b435e61c /lisp/emacs-lisp
parente88eed95a9b0a4c4d06312a557b6b382ad12b8a3 (diff)
downloademacs-0c9da50e96108589c1cac5e25a3627c25a484bc9.tar.gz
emacs-0c9da50e96108589c1cac5e25a3627c25a484bc9.tar.bz2
emacs-0c9da50e96108589c1cac5e25a3627c25a484bc9.zip
Default lisp-mode to use Common Lisp indentation
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Use common-lisp-indent-function instead of lisp-indent-function as Common Lisp is the most common non-Emacs Lisp today (bug#10097).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index fbbd389bf96..f66122d6d72 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -747,6 +747,7 @@ Blank lines separate paragraphs. Semicolons start comments.
Note that `run-lisp' may be used either to start an inferior Lisp job
or to switch back to an existing one."
(lisp-mode-variables nil t)
+ (setq-local lisp-indent-function 'common-lisp-indent-function)
(setq-local find-tag-default-function 'lisp-find-tag-default)
(setq-local comment-start-skip
"\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")