aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorMartin Stjernholm2003-01-26 21:36:39 +0000
committerMartin Stjernholm2003-01-26 21:36:39 +0000
commit980a8a00df97f77988f7ee1005546c7eeed4d56b (patch)
tree835005b34146147e4f21e51b57fb7f5762417232 /lisp/progmodes
parent66fd374bab05026da092646f3af0855c1cf54bdf (diff)
downloademacs-980a8a00df97f77988f7ee1005546c7eeed4d56b.tar.gz
emacs-980a8a00df97f77988f7ee1005546c7eeed4d56b.zip
(c-require-final-newline): Added a variable to make the initialization of
require-final-newline' more configurable.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-mode.el2
-rw-r--r--lisp/progmodes/cc-vars.el7
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 40e5a3107a8..5148ff72dea 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -326,7 +326,7 @@
326 'c-indent-new-comment-line))) 326 'c-indent-new-comment-line)))
327 327
328 ;; now set their values 328 ;; now set their values
329 (setq require-final-newline t 329 (setq require-final-newline c-require-final-newline
330 parse-sexp-ignore-comments t 330 parse-sexp-ignore-comments t
331 indent-line-function 'c-indent-line 331 indent-line-function 'c-indent-line
332 indent-region-function 'c-indent-region 332 indent-region-function 'c-indent-region
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 2b88a131776..50b09160ee3 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -704,6 +704,13 @@ space."
704 :type 'function 704 :type 'function
705 :group 'c) 705 :group 'c)
706 706
707(defcustom c-require-final-newline t
708 "*Controls whether a final newline is added to the file when saved.
709This value is given to `require-final-newline' at mode initialization;
710see that variable for details."
711 :type 'symbol
712 :group 'c)
713
707(defcustom c-electric-pound-behavior nil 714(defcustom c-electric-pound-behavior nil
708 "*List of behaviors for electric pound insertion. 715 "*List of behaviors for electric pound insertion.
709Only currently supported behavior is `alignleft'." 716Only currently supported behavior is `alignleft'."