comparison lisp/progmodes/cplus-md.el @ 21447:42e8acda5021

Customize
author Stephen Eglen <stephen@gnu.org>
date Thu, 09 Apr 1998 12:31:57 +0000
parents 90f306f86f5d
children a3ae5a47de23
comparison
equal deleted inserted replaced
21446:830023d4cec6 21447:42e8acda5021
95 ;; 95 ;;
96 ;; August 1987: incorporated changes done by Glen Ditchfield of Waterloo. 96 ;; August 1987: incorporated changes done by Glen Ditchfield of Waterloo.
97 97
98 ;;; Code: 98 ;;; Code:
99 99
100 (defgroup old-c++ nil
101 "Old C++ code editing mode for Emacs."
102 :prefix "c-"
103 :group 'languages)
104
100 (defvar c++-mode-abbrev-table nil 105 (defvar c++-mode-abbrev-table nil
101 "Abbrev table used in C++ mode.") 106 "Abbrev table used in C++ mode.")
102 (define-abbrev-table 'c++-mode-abbrev-table ()) 107 (define-abbrev-table 'c++-mode-abbrev-table ())
103 108
104 (defvar c++-mode-map () 109 (defvar c++-mode-map ()
141 (modify-syntax-entry ?* ". 23b" c++-mode-syntax-table) 146 (modify-syntax-entry ?* ". 23b" c++-mode-syntax-table)
142 (modify-syntax-entry ?/ ". 124" c++-mode-syntax-table) 147 (modify-syntax-entry ?/ ". 124" c++-mode-syntax-table)
143 (modify-syntax-entry ?\n ">" c++-mode-syntax-table) 148 (modify-syntax-entry ?\n ">" c++-mode-syntax-table)
144 (modify-syntax-entry ?\^m ">" c++-mode-syntax-table)) 149 (modify-syntax-entry ?\^m ">" c++-mode-syntax-table))
145 150
146 (defvar c++-continued-member-init-offset nil 151 (defcustom c++-continued-member-init-offset nil
147 "*Extra indent for continuation lines of member inits; 152 "*Extra indent for continuation lines of member inits;
148 nil means to align with previous initializations rather than 153 nil means to align with previous initializations rather than
149 with the colon on the first line.") 154 with the colon on the first line."
150 (defvar c++-member-init-indent 0 155 :type '(choice (const nil) integer)
151 "*Indentation level of member initializations in function declarations.") 156 :group 'old-c++)
152 (defvar c++-friend-offset -4 157 (defcustom c++-member-init-indent 0
153 "*Offset of C++ friend declarations relative to member declarations.") 158 "*Indentation level of member initializations in function declarations."
154 (defvar c++-electric-colon t 159 :type 'integer
155 "*If t, colon is an electric terminator.") 160 :group 'old-c++)
156 (defvar c++-empty-arglist-indent nil 161 (defcustom c++-friend-offset -4
162 "*Offset of C++ friend declarations relative to member declarations."
163 :type 'integer
164 :group 'old-c++)
165 (defcustom c++-electric-colon t
166 "*If t, colon is an electric terminator."
167 :type 'boolean
168 :group 'old-c++)
169 (defcustom c++-empty-arglist-indent nil
157 "*Indicates how far to indent an line following an empty argument 170 "*Indicates how far to indent an line following an empty argument
158 list. Nil indicates to just after the paren.") 171 list. Nil indicates to just after the paren."
172 :type '(choice (const nil) integer)
173 :group 'old-c++)
159 174
160 (defvar c++-imenu-generic-expression 175 (defvar c++-imenu-generic-expression
161 (` 176 (`
162 ((nil 177 ((nil
163 (, 178 (,