diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-13 03:09:23 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-13 03:09:23 +0000 |
commit | ded3e3d8164880c92301010fce1426ae20fb8d12 (patch) | |
tree | 4f417c70082215f769efa092597827306b88a04c /lisp/textmodes | |
parent | 8e9337739bb050be41b174c06bd2fcc5d4117097 (diff) | |
download | emacs-ded3e3d8164880c92301010fce1426ae20fb8d12.tar.gz |
Add defgroup; use defcustom for user vars.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/two-column.el | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index 1fa8474c9b9..0643bb99ecb 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el @@ -198,6 +198,12 @@ ;;;;; variable declarations ;;;;; +(defgroup two-column nil + "Minor mode for editing of two-column text" + :prefix "2C-" + :group 'frames) + + ;; Markers seem to be the only buffer-id not affected by renaming a buffer. ;; This nevertheless loses when a buffer is killed. The variable-name is ;; required by `describe-mode'. @@ -213,40 +219,52 @@ ;; rearranged, so that the pertinent info will show in 40 columns -(defvar 2C-mode-line-format +(defcustom 2C-mode-line-format '("-%*- %15b --" (-3 . "%p") "--%[(" mode-name minor-mode-alist "%n" mode-line-process ")%]%-") - "*Value of mode-line-format for a buffer in two-column minor mode.") + "*Value of mode-line-format for a buffer in two-column minor mode." + :type 'sexp + :group 'two-column) -(defvar 2C-other-buffer-hook 'text-mode - "*Hook run in new buffer when it is associated with current one.") +(defcustom 2C-other-buffer-hook 'text-mode + "*Hook run in new buffer when it is associated with current one." + :type 'function + :group 'two-column) -(defvar 2C-separator "" +(defcustom 2C-separator "" "*A string inserted between the two columns when merging. -This gets set locally by \\[2C-split].") +This gets set locally by \\[2C-split]." + :type 'string + :group 'two-column) (put '2C-separator 'permanent-local t) -(defvar 2C-window-width 40 +(defcustom 2C-window-width 40 "*The width of the first column. (Must be at least `window-min-width') -This value is local for every buffer that sets it.") +This value is local for every buffer that sets it." + :type 'integer + :group 'two-column) (make-variable-buffer-local '2C-window-width) (put '2C-window-width 'permanent-local t) -(defvar 2C-beyond-fill-column 4 +(defcustom 2C-beyond-fill-column 4 "*Base for calculating `fill-column' for a buffer in two-column minor mode. The value of `fill-column' becomes `2C-window-width' for this buffer -minus this value.") +minus this value." + :type 'integer + :group 'two-column) -(defvar 2C-autoscroll t - "If non-nil, Emacs attempts to keep the two column's buffers aligned.") +(defcustom 2C-autoscroll t + "If non-nil, Emacs attempts to keep the two column's buffers aligned." + :type 'boolean + :group 'two-column) |