summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)