leon-barrett / just-mode.el

Emacs mode for justfiles
GNU General Public License v3.0
37 stars 6 forks source link

Feature Request - edit source code in an indirect buffer like `org-src-edit-mode` #8

Open peterhoeg opened 11 months ago

peterhoeg commented 11 months ago

In an org-mode file, it's possible to inject a source block written in any language supported by emacs and then switch to the corresponding major mode when editing that source block which will give you proper syntax highlighting, flymake/lsp support and so on - basically all the trimmings of the regular major mode, which is very nice.

As a Justfile can also contain scripts, it would be very neat if we were able to do something similar. org-mode knows which major mode to switch to based on the #+BEGIN_SRC tag and so just-mode would have to do something clever about the shebang line.

leon-barrett commented 5 months ago

I agree, that would be nice. I'm not prepared to write sufficiently advanced elisp right now, sorry. I'm open to contributions.