From: Lars Ingebrigtsen Date: Mon, 18 Oct 2021 08:44:28 +0000 (+0200) Subject: Add indentation rules for DEFUN's def* functions X-Git-Tag: emacs-29.0.90~3671^2~508 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7e1329e7edf3b69ee5ceb7e0343a31ed35ea7529;p=emacs.git Add indentation rules for DEFUN's def* functions --- diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index fadc0a73791..57fc750515f 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -1295,6 +1295,13 @@ Lisp function does not specify a special indentation." (put 'autoload 'lisp-indent-function 'defun) ;Elisp (put 'progn 'lisp-indent-function 0) +(put 'defvar 'lisp-indent-function 'defun) +(put 'defalias 'lisp-indent-function 'defun) +(put 'defvaralias 'lisp-indent-function 'defun) +(put 'defconst 'lisp-indent-function 'defun) +(put 'define-category 'lisp-indent-function 'defun) +(put 'define-charset-internal 'lisp-indent-function 'defun) +(put 'define-fringe-bitmap 'lisp-indent-function 'defun) (put 'prog1 'lisp-indent-function 1) (put 'save-excursion 'lisp-indent-function 0) ;Elisp (put 'save-restriction 'lisp-indent-function 0) ;Elisp