comparison man/custom.texi @ 71612:77266daa9ec9

Use ;; instead of ;;; to better follow coding conventions.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 04 Jul 2006 20:02:38 +0000
parents 4d628cade603
children ee4295c07eed 138ce2701550
comparison
equal deleted inserted replaced
71611:94186fc5fd79 71612:77266daa9ec9
1110 variables list afterward. 1110 variables list afterward.
1111 1111
1112 Here is an example of a local variables list: 1112 Here is an example of a local variables list:
1113 1113
1114 @example 1114 @example
1115 ;;; Local Variables: *** 1115 ;; Local Variables: **
1116 ;;; mode:lisp *** 1116 ;; mode:lisp **
1117 ;;; comment-column:0 *** 1117 ;; comment-column:0 **
1118 ;;; comment-start: ";;; " *** 1118 ;; comment-start: ";; " **
1119 ;;; comment-end:"***" *** 1119 ;; comment-end:"**" **
1120 ;;; End: *** 1120 ;; End: **
1121 @end example 1121 @end example
1122 1122
1123 Each line starts with the prefix @samp{;;; } and each line ends with 1123 Each line starts with the prefix @samp{;; } and each line ends with
1124 the suffix @samp{ ***}. Emacs recognizes these as the prefix and 1124 the suffix @samp{ **}. Emacs recognizes these as the prefix and
1125 suffix based on the first line of the list, by finding them 1125 suffix based on the first line of the list, by finding them
1126 surrounding the magic string @samp{Local Variables:}; then it 1126 surrounding the magic string @samp{Local Variables:}; then it
1127 automatically discards them from the other lines of the list. 1127 automatically discards them from the other lines of the list.
1128 1128
1129 The usual reason for using a prefix and/or suffix is to embed the 1129 The usual reason for using a prefix and/or suffix is to embed the
1130 local variables list in a comment, so it won't confuse other programs 1130 local variables list in a comment, so it won't confuse other programs
1131 that the file is intended as input for. The example above is for a 1131 that the file is intended as input for. The example above is for a
1132 language where comment lines start with @samp{;;; } and end with 1132 language where comment lines start with @samp{;; } and end with
1133 @samp{***}; the local values for @code{comment-start} and 1133 @samp{**}; the local values for @code{comment-start} and
1134 @code{comment-end} customize the rest of Emacs for this unusual 1134 @code{comment-end} customize the rest of Emacs for this unusual
1135 syntax. Don't use a prefix (or a suffix) if you don't need one. 1135 syntax. Don't use a prefix (or a suffix) if you don't need one.
1136 1136
1137 If you write a multi-line string value, you should put the prefix 1137 If you write a multi-line string value, you should put the prefix
1138 and suffix on each line, even lines that start or end within the 1138 and suffix on each line, even lines that start or end within the