diff options
author | Case Duckworth | 2021-04-02 13:28:30 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-02 13:28:30 -0500 |
commit | b0edf26ce65743e7ece37f2b1f62e8e9e10c5240 (patch) | |
tree | 2729024fb16a71fbc6975e81db8f3bf8a2e4a147 | |
parent | Add `defun-with-hooks' (diff) | |
download | emacs-b0edf26ce65743e7ece37f2b1f62e8e9e10c5240.tar.gz emacs-b0edf26ce65743e7ece37f2b1f62e8e9e10c5240.zip |
Hook `executable-make-buffer-file-executable-if-script-p'
The worst-named function ... of all time.
-rw-r--r-- | init.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init.el b/init.el index 5d900ce..8abd171 100644 --- a/init.el +++ b/init.el | |||
@@ -168,6 +168,8 @@ | |||
168 | version-control t | 168 | version-control t |
169 | vc-make-backup-files t) | 169 | vc-make-backup-files t) |
170 | 170 | ||
171 | (add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p) | ||
172 | |||
171 | ;;;;; Auto-save files | 173 | ;;;;; Auto-save files |
172 | (auto-save-visited-mode +1) | 174 | (auto-save-visited-mode +1) |
173 | ;; And /actually/ save all buffers when unfocused | 175 | ;; And /actually/ save all buffers when unfocused |