From b7a317cfab9e8d765c4957bc59aab507b2346e78 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 27 Sep 2016 15:14:12 -0700 Subject: [PATCH] [Emacs] Add after-save-hook to make files execable --- dotfiles/emacs.d/README.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index a15cada0..12334085 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1034,6 +1034,10 @@ proced is an top like utility that runs inside of emacs. The following sets auto (setq browse-url-browser-function 'browse-url-generic browse-url-generic-program "google-chrome-stable")) #+END_SRC +** Make files executable +#+BEGIN_SRC emacs-lisp +(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) +#+END_SRC ** Misc #+BEGIN_SRC emacs-lisp (defvar iedit-toggle-key-default nil)