Moved Fish script work to programming
This commit is contained in:
parent
4e5a4e9800
commit
c2fed6f149
2 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue