summaryrefslogtreecommitdiff
path: root/lisp/enriched.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-04-12 20:20:55 +0000
committerRichard M. Stallman <rms@gnu.org>1997-04-12 20:20:55 +0000
commit20f0de751d2c4bc18964b0ddea4a07f306fed8b6 (patch)
treeac1d71d546bb10c472713f43f01f9e4e6f407250 /lisp/enriched.el
parent1d6a4283e41381e9f6155ce398f20d3408e1c4c7 (diff)
downloademacs-20f0de751d2c4bc18964b0ddea4a07f306fed8b6.tar.gz
Add defgroup; use defcustom for user vars.
Diffstat (limited to 'lisp/enriched.el')
-rw-r--r--lisp/enriched.el16
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el
index 8cc47361bab..10bbb23b4f2 100644
--- a/lisp/enriched.el
+++ b/lisp/enriched.el
@@ -46,8 +46,14 @@
;;; Variables controlling the display
;;;
-(defvar enriched-verbose t
- "*If non-nil, give status messages when reading and writing files.")
+(defgroup enriched nil
+ "Read and save files in text/enriched format"
+ :group 'wp)
+
+(defcustom enriched-verbose t
+ "*If non-nil, give status messages when reading and writing files."
+ :type 'boolean
+ :group 'enriched)
;;;
;;; Set up faces & display table
@@ -143,11 +149,13 @@ Any property that is neither on this list nor dealt with by
(cons '(enriched-mode " Enriched")
minor-mode-alist)))
-(defvar enriched-mode-hook nil
+(defcustom enriched-mode-hook nil
"Functions to run when entering Enriched mode.
If you set variables in this hook, you should arrange for them to be restored
to their old values if you leave Enriched mode. One way to do this is to add
-them and their old values to `enriched-old-bindings'.")
+them and their old values to `enriched-old-bindings'."
+ :type 'hook
+ :group 'enriched)
(defvar enriched-old-bindings nil
"Store old variable values that we change when entering mode.