summaryrefslogtreecommitdiff
path: root/lisp/textmodes/page-ext.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-04-13 07:51:54 +0000
committerRichard M. Stallman <rms@gnu.org>1997-04-13 07:51:54 +0000
commit9a7787d46d3e4160c30a2c3073cf690b9286f207 (patch)
tree9d8ad682ba95d4e3065587e5580b35cc33e28d22 /lisp/textmodes/page-ext.el
parent4eeedc8cb2e76d002d3f8ee7073acd18b5243561 (diff)
downloademacs-9a7787d46d3e4160c30a2c3073cf690b9286f207.tar.gz
Add defgroup; use defcustom for user vars.
Diffstat (limited to 'lisp/textmodes/page-ext.el')
-rw-r--r--lisp/textmodes/page-ext.el53
1 files changed, 36 insertions, 17 deletions
diff --git a/lisp/textmodes/page-ext.el b/lisp/textmodes/page-ext.el
index bc5e971b141..2718aea094b 100644
--- a/lisp/textmodes/page-ext.el
+++ b/lisp/textmodes/page-ext.el
@@ -235,30 +235,49 @@
;;; Customarily customizable variable definitions
-(defvar pages-directory-buffer-narrowing-p t
- "*If non-nil, `pages-directory-goto' narrows pages buffer to entry.")
+(defgroup pages nil
+ "Extended page-handling commands."
+ :group 'extensions)
-(defvar pages-directory-for-adding-page-narrowing-p t
- "*If non-nil, `add-new-page' narrows page buffer to new entry.")
-(defvar pages-directory-for-adding-new-page-before-current-page-p t
- "*If non-nil, `add-new-page' inserts new page before current page.")
+(defcustom pages-directory-buffer-narrowing-p t
+ "*If non-nil, `pages-directory-goto' narrows pages buffer to entry."
+ :type 'boolean
+ :group 'pages)
+
+(defcustom pages-directory-for-adding-page-narrowing-p t
+ "*If non-nil, `add-new-page' narrows page buffer to new entry."
+ :type 'boolean
+ :group 'pages)
+
+(defcustom pages-directory-for-adding-new-page-before-current-page-p t
+ "*If non-nil, `add-new-page' inserts new page before current page."
+ :type 'boolean
+ :group 'pages)
;;; Addresses related variables
-(defvar pages-addresses-file-name "~/addresses"
+(defcustom pages-addresses-file-name "~/addresses"
"*Standard name for file of addresses. Entries separated by page-delimiter.
-Used by `pages-directory-for-addresses' function.")
-
-(defvar pages-directory-for-addresses-goto-narrowing-p t
- "*If non-nil, `pages-directory-goto' narrows addresses buffer to entry.")
-
-(defvar pages-directory-for-addresses-buffer-keep-windows-p t
- "*If nil, `pages-directory-for-addresses' deletes other windows.")
-
-(defvar pages-directory-for-adding-addresses-narrowing-p t
- "*If non-nil, `add-new-page' narrows addresses buffer to new entry.")
+Used by `pages-directory-for-addresses' function."
+ :type 'file
+ :group 'pages)
+
+(defcustom pages-directory-for-addresses-goto-narrowing-p t
+ "*If non-nil, `pages-directory-goto' narrows addresses buffer to entry."
+ :type 'boolean
+ :group 'pages)
+
+(defcustom pages-directory-for-addresses-buffer-keep-windows-p t
+ "*If nil, `pages-directory-for-addresses' deletes other windows."
+ :type 'boolean
+ :group 'pages)
+
+(defcustom pages-directory-for-adding-addresses-narrowing-p t
+ "*If non-nil, `add-new-page' narrows addresses buffer to new entry."
+ :type 'boolean
+ :group 'pages)
;;; Key bindings for page handling functions