]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-mode-variables): Bind comment-indent-function locally.
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 2005 14:10:23 +0000 (14:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 2005 14:10:23 +0000 (14:10 +0000)
lisp/emacs-lisp/lisp-mode.el

index 1ffc33835e94611bfddd9a1ee37a2ba38f30ad5c..972fe6bafc88c17e2dc93b602201e49fe8469362 100644 (file)
   (setq comment-column 40)
   ;; Don't get confused by `;' in doc strings when paragraph-filling.
   (set (make-local-variable 'comment-use-global-state) t)
+  (make-local-variable 'comment-indent-function)
+  (setq comment-indent-function 'lisp-comment-indent)
   (make-local-variable 'imenu-generic-expression)
   (setq imenu-generic-expression lisp-imenu-generic-expression)
   (make-local-variable 'multibyte-syntax-as-symbol)
@@ -714,7 +716,7 @@ which see."
               (setq debug-on-error new-value))
             value)))))
 \f
-
+;; Used for comment-indent-function in Lisp modes.
 (defun lisp-comment-indent ()
   (if (looking-at "\\s<\\s<\\s<")
       (current-column)