summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-06-23 08:29:04 +0200
committerAlan Pearce2024-06-23 08:29:04 +0200
commitb84edf9b8bd5cfa8616808c37aaa18c16f8d2214 (patch)
treeb092f0f7d1ab91e1f732ab216d3295fda66ed412 /user/emacs
parentf2ccc74d5362a83c9d3dac2d219e5d73d5984825 (diff)
downloadnixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.tar.lz
nixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.tar.zst
nixfiles-b84edf9b8bd5cfa8616808c37aaa18c16f8d2214.zip
Emacs: make bash and fish scripts executable after saving
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el2
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)))