From 3b4761074d0d513ff1c262d30da003f753ef4c7a Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 1 Oct 2021 18:40:46 +0100 Subject: trick for executable scripts on save --- init.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.org b/init.org index 2d234c6..0c38cb6 100644 --- a/init.org +++ b/init.org @@ -854,6 +854,11 @@ :bind (:map dired-mode-map (")" . dired-git-info-mode))) #+END_SRC * General editing +*** Executable scripts + #+begin_src emacs-lisp + (add-hook 'after-save-hook + 'executable-make-buffer-file-executable-if-script-p) + #+end_src *** eldoc #+begin_src emacs-lisp (use-package eldoc -- cgit v1.2.3