Skip to content

myshell

D Groth edited this page Oct 12, 2024 · 1 revision

Extending existing file-hooks

MicroEmacs offers sophisticated help to edit certain file types like Markup - for instance Markdown or LaTeX - or Programming language files like C, C++, Python etc. Sometimes you would like to add some extensions to these features on your own.

The file myshell.emf which you find in the contribs folder adds folding for functions, item-list navigation for functions, abbreviations - defined in a file shell.eaf and a template for new files - defined in a file shell.etf for Shell scripts (Bash and Zsh).

To install these just copy these files into your ~/.config/jasspa configuration folder. If you create a new file with the sh-extension thereafter you should get the template inserted at the beginning and if you call the commands abbrev-list you should see the available abbreviations defined in shell.eaf and if you create some Bash or Zsh function and then call item-list, you should see the item-list buffer where you can navigate the functions by clicking in the item list buffer.

The file myshell.emf contains more detailed information on how to extend a file-hook for a specific file type.

Clone this wiki locally