Automatically set the executable flag on scripts

This commit is contained in:
Ohad Livne 2025-06-04 22:45:43 +03:00
parent c0465ec22d
commit c0c8592104
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -4,6 +4,7 @@
:elpaca nil :elpaca nil
:bind (("C-z" . nil) :bind (("C-z" . nil)
("C-z i" . (lambda () (interactive) (find-file user-init-file)))) ("C-z i" . (lambda () (interactive) (find-file user-init-file))))
:hook ((after-save . executable-make-buffer-file-executable-if-script-p))
:config :config
(defalias 'yes-or-no-p 'y-or-n-p) (defalias 'yes-or-no-p 'y-or-n-p)
(display-time-mode) (display-time-mode)