diff options
author | Alan Pearce | 2024-06-23 08:29:04 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-23 08:29:04 +0200 |
commit | b84edf9b8bd5cfa8616808c37aaa18c16f8d2214 (patch) | |
tree | b092f0f7d1ab91e1f732ab216d3295fda66ed412 | |
parent | f2ccc74d5362a83c9d3dac2d219e5d73d5984825 (diff) | |
download | nixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.tar.lz nixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.tar.zst nixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.zip |
Emacs: make bash and fish scripts executable after saving
-rw-r--r-- | user/emacs/init.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 22a1ebec..3abd3633 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -824,7 +824,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (add-hook 'compilation-filter-hook #'colourise-compilation-buffer) ;;;; shell -(general-add-hook 'sh-mode-hook +(general-add-hook '(sh-mode-hook bash-ts-mode-hook fish-mode-hook) (lambda () (general-add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p :append :local))) |