Moved Fish script work to programming

This commit is contained in:
Howard Abrams 2021-11-09 17:20:36 -08:00
parent 4e5a4e9800
commit c2fed6f149
2 changed files with 6 additions and 6 deletions

View file

@ -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~. *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... 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: * Technical Artifacts :noexport:
Let's provide a name so that the file can be required: Let's provide a name so that the file can be required:

View file

@ -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)) (after-save . executable-make-buffer-file-executable-if-script-p))
#+END_SRC #+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. *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: * Technical Artifacts :noexport:
Provide a name in order to =require= this code. Provide a name in order to =require= this code.