summaryrefslogtreecommitdiff
path: root/lisp/shadowfile.el
diff options
context:
space:
mode:
authorStephen Eglen <stephen@gnu.org>1998-03-07 18:19:38 +0000
committerStephen Eglen <stephen@gnu.org>1998-03-07 18:19:38 +0000
commit4bef911093051ec6dfca2e1415e42baee60f8e37 (patch)
tree01e2642e0ce7282e95907bc908e065a2817d30c1 /lisp/shadowfile.el
parent14d4446b73f2f52becebc28d96e82f6ff5fe8e57 (diff)
downloademacs-4bef911093051ec6dfca2e1415e42baee60f8e37.tar.gz
Customized.
Diffstat (limited to 'lisp/shadowfile.el')
-rw-r--r--lisp/shadowfile.el36
1 files changed, 26 insertions, 10 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index 48f792fb0fd..1302171f517 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -85,31 +85,47 @@
;;; Variables
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(defvar shadow-noquery nil
+(defgroup shadow nil
+ "Automatic file copying when saving a file."
+ :prefix "shadow-"
+ :group 'files)
+
+(defcustom shadow-noquery nil
"*If t, always copy shadow files without asking.
If nil \(the default), always ask. If not nil and not t, ask only if there
-is no buffer currently visiting the file.")
+is no buffer currently visiting the file."
+ :type '(choice (const t) (const nil) (const :tag "Ask if no buffer" maybe))
+ :group 'shadow)
-(defvar shadow-inhibit-message nil
- "*If nonnil, do not display a message when a file needs copying.")
+(defcustom shadow-inhibit-message nil
+ "*If nonnil, do not display a message when a file needs copying."
+ :type 'boolean
+ :group 'shadow)
-(defvar shadow-inhibit-overload nil
+(defcustom shadow-inhibit-overload nil
"If nonnil, shadowfile won't redefine C-x C-c.
Normally it overloads the function `save-buffers-kill-emacs' to check
-for files have been changed and need to be copied to other systems.")
+for files have been changed and need to be copied to other systems."
+ :type 'boolean
+ :group 'shadow)
-(defvar shadow-info-file nil
+(defcustom shadow-info-file nil
"File to keep shadow information in.
The shadow-info-file should be shadowed to all your accounts to
-ensure consistency. Default: ~/.shadows")
+ensure consistency. Default: ~/.shadows"
+ :type '(choice (const nil) file)
+ :group 'shadow)
-(defvar shadow-todo-file nil
+(defcustom shadow-todo-file nil
"File to store the list of uncopied shadows in.
This means that if a remote system is down, or for any reason you cannot or
decide not to copy your shadow files at the end of one emacs session, it will
remember and ask you again in your next emacs session.
This file must NOT be shadowed to any other system, it is host-specific.
-Default: ~/.shadow_todo")
+Default: ~/.shadow_todo"
+ :type '(choice (const nil) file)
+ :group 'shadow)
+
;;; The following two variables should in most cases initialize themselves
;;; correctly. They are provided as variables in case the defaults are wrong