From 6198dfb726f6edc6e13a3601626a8b9c9a35160f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 29 Sep 2021 17:20:22 -0500 Subject: Move stuff to executable setup form I should probably do this for all of the files or w/e --- init.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 20fb9f9..04b50aa 100644 --- a/init.el +++ b/init.el @@ -722,10 +722,7 @@ specific to most general, they are these: (defun prog-mode@auto-fill () (setq-local comment-auto-fill-only-comments t) - (turn-on-auto-fill))) - - (add-hook 'after-save-hook - #'executable-make-buffer-file-executable-if-script-p)) + (turn-on-auto-fill)))) (setup repeat ;; new for Emacs 28! @@ -1459,6 +1456,11 @@ specific to most general, they are these: (:hook-into emacs-lisp-mode lisp-interaction-mode)) +(setup executable + (:option executable-prefix-env t) + (add-hook 'after-save-hook + #'executable-make-buffer-file-executable-if-script-p)) + (setup (:straight-if exec-path-from-shell (acdw/system :home)) (when (daemonp) -- cgit 1.4.1-21-gabe81