[Emacs] Add after-save-hook to make files execable

This commit is contained in:
Ivan Malison 2016-09-27 15:14:12 -07:00
parent db79185d79
commit b7a317cfab
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -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)