From 9a4841c0f4e72ba7e3f933c3fad87f10cbe7ffbe Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 28 Mar 2014 10:44:52 +0100 Subject: [PATCH] Change indent level of vectors in Lisp. lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Vector elements should all be aligned under the open bracket. Before: (list [:prop1 foo :prop2 bar]) After: (list [:prop1 foo :prop2 bar]) --- lisp/emacs-lisp/lisp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 437bf74..a9eac6a 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -1332,7 +1332,7 @@ is the buffer position of the start of the containing expression." (setq desired-indent (current-column)) ;; Find the start of first element of containing sexp. (parse-partial-sexp (point) calculate-lisp-indent-last-sexp 0 t) - (cond ((looking-at "\\s(") + (cond ((or (looking-at "\\s(") (looking-back "\\[")) ;; First element of containing sexp is a list. ;; Indent under that list. ) -- 1.8.4