summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-04-01 20:33:44 -0400
committerKyle Meyer <meyerkya@gmail.com>2013-04-01 20:33:44 -0400
commit4e5edfd137dc33f78ae12d92abcf5ca1575e9a61 (patch)
tree2de61bcfb924dbcd2590e653132eed939c73ebac /init
parent1dfe5a9801a3583ae670aa491aff2894703de4a4 (diff)
downloademacs.d-4e5edfd137dc33f78ae12d92abcf5ca1575e9a61.tar.gz
hook to make scripts executable
Diffstat (limited to 'init')
-rw-r--r--init/km-general.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/km-general.el b/init/km-general.el
index f7dc421..2165685 100644
--- a/init/km-general.el
+++ b/init/km-general.el
@@ -28,3 +28,7 @@
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
+
+;; make scripts executable at save
+(add-hook 'after-save-hook
+ 'executable-make-buffer-file-executable-if-script-p)