From c2fed6f14937ff60c292adfad5b575f9a813542d Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 9 Nov 2021 17:20:36 -0800 Subject: [PATCH] Moved Fish script work to programming --- ha-config.org | 6 ------ ha-programming.org | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ha-config.org b/ha-config.org index ac95a58..1362a51 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1083,12 +1083,6 @@ The advantage of running terminals in Emacs is the ability to copy text without *Note:* To exit the copy-mode (and copy the selected text to the clipboard), hit ~Return~. Hrm. Seems that I might want a function to copy the output of the last command to a register, or even an org-capture... -** Fish Shell -#+BEGIN_SRC emacs-lisp -(use-package fish-mode - :mode ("\\.fish" . fish-mode) - :hook (fish-mode . (lambda () (add-hook 'before-save-hook 'fish_indent-before-save)))) -#+END_SRC * Technical Artifacts :noexport: Let's provide a name so that the file can be required: diff --git a/ha-programming.org b/ha-programming.org index 6fd2b38..eeb8701 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -364,6 +364,12 @@ While filename extensions work fine most of the time, I don't like to pre-pend = (after-save . executable-make-buffer-file-executable-if-script-p)) #+END_SRC *Note:* we make the script /executable/ by default. See [[https://emacsredux.com/blog/2021/09/29/make-script-files-executable-automatically/][this essay]] for details, but it appears that the executable bit is only turned on if the script has a shebang at the top of the file. +** Fish Shell +#+BEGIN_SRC emacs-lisp +(use-package fish-mode + :mode (rx ".fish" eol) + :hook (fish-mode . (lambda () (add-hook 'before-save-hook 'fish_indent-before-save)))) +#+END_SRC * Technical Artifacts :noexport: Provide a name in order to =require= this code.