summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/cvs-format.el
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-15 22:46:24 +0000
committerpeter <peter@FreeBSD.org>1997-05-15 22:46:24 +0000
commit4f40fe8334ad5f056e1d9105f23fe7ac859c39ba (patch)
tree3b2f0092fa216d9f61059ba94b7f10b5bacf9496 /contrib/cvs/cvs-format.el
parent8982e501c77217c860f79bba431f46a62b607a21 (diff)
downloadFreeBSD-src-4f40fe8334ad5f056e1d9105f23fe7ac859c39ba.zip
FreeBSD-src-4f40fe8334ad5f056e1d9105f23fe7ac859c39ba.tar.gz
Import of cvs-1.9.9-970515 onto vendor branch.
Obtained from: cyclic.com
Diffstat (limited to 'contrib/cvs/cvs-format.el')
-rw-r--r--contrib/cvs/cvs-format.el22
1 files changed, 17 insertions, 5 deletions
diff --git a/contrib/cvs/cvs-format.el b/contrib/cvs/cvs-format.el
index cdbd842..06dcc62 100644
--- a/contrib/cvs/cvs-format.el
+++ b/contrib/cvs/cvs-format.el
@@ -1,11 +1,17 @@
;; -*- lisp-interaction -*-
;; -*- emacs-lisp -*-
;;
+;; Set emacs up for editing code using CVS indentation conventions.
+;; See HACKING for more on what those conventions are.
+;; To use, put in your .emacs:
+;; (load "c-mode")
+;; (load "cvs-format.el")
+;; You need to load c-mode first or else when c-mode autoloads it will
+;; clobber the settings from cvs-format.el. Using c-mode-hook perhaps would
+;; be a cleaner way to handle that. Or see below about (set-c-style "BSD").
;;
-;; originally from...
-;; Rich's personal .emacs file. feel free to copy.
-;;
-;; Last Mod Wed Feb 5 16:11:47 PST 1992, by rich@cygnus.com
+;; Credits: Originally from the personal .emacs file of Rich Pixley,
+;; then rich@cygnus.com, circa 1992. He sez "feel free to copy."
;;
;;
@@ -75,7 +81,13 @@
;;`c-label-offset'
;; Extra indentation for line that is a label, or case or default.
-
+;; This doesn't quite do the right thing for CVS switches, which use the
+;; switch (foo)
+;; {
+;; case 0:
+;; break;
+;; style. But if one manually aligns the first case, then the rest
+;; should work OK.
(setq c-label-offset -4)
;;;; eof
OpenPOWER on IntegriCloud