changeset 29527:d5b77185f216

(after-save-hook): Customize, with make-buffer-file-executable-if-script-p as an option.
author Dave Love <fx@gnu.org>
date Fri, 09 Jun 2000 09:40:27 +0000
parents 64d6ad22bce7
children 4fec2976425d
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Fri Jun 09 09:38:58 2000 +0000
+++ b/lisp/files.el	Fri Jun 09 09:40:27 2000 +0000
@@ -2495,8 +2495,11 @@
 (defvar auto-save-hook nil
   "Normal hook run just before auto-saving.")
 
-(defvar after-save-hook nil
-  "Normal hook that is run after a buffer is saved to its file.")
+(defcustom after-save-hook nil
+  "Normal hook that is run after a buffer is saved to its file."
+  :options '(make-buffer-file-executable-if-script-p)
+  :type 'hook
+  :group 'files)
 
 (defvar save-buffer-coding-system nil
   "If non-nil, use this coding system for saving the buffer.