diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-04-01 20:33:44 -0400 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-04-01 20:33:44 -0400 |
commit | 4e5edfd137dc33f78ae12d92abcf5ca1575e9a61 (patch) | |
tree | 2de61bcfb924dbcd2590e653132eed939c73ebac | |
parent | 1dfe5a9801a3583ae670aa491aff2894703de4a4 (diff) | |
download | emacs.d-4e5edfd137dc33f78ae12d92abcf5ca1575e9a61.tar.gz |
hook to make scripts executable
-rw-r--r-- | init/km-general.el | 4 |
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) |