An emacs mode for the awesome forml language implemented by @texodus.
section in a new buffer. Save the buffer (
C-c C-s) to copy the new
content back to the original buffer.
be created for you (i.e.
`` will be inserted) and when you're
Forml mode comes with flymake setup and ready to use. To enable flymake add the following to your .emacs file:
(custom-set-variables '(forml-mode-flymake t))
forml isn't on your path you'll have to add the following instead:
(custom-set-variables '(forml-mode-flymake t) '(forml-mode-forml-path "path to forml"))
where "path to forml" is the path to the
Those of you who use emacs will probably know about this feature from other modes. It is added for those who are new to Emacs and using it to write some Forml code.
Continue a comment on the next line
You can use the combination
M-j to continue a comment (that's getting long)
on the next line.
Comment a region
Mark the region by going to the start and hitting
C-spc then go to the end
C-spc then use the combination
C-; to toggle the comments
for the entire block.
Adding a comment at the end of a line
M-; to add a comment at the end of the current line.
Fill a comment
If you have a comment that's too long you can mark the entire line and using
M-q to split the comment to multiple lines.
- Better indentation, something like haskell mode or coffeescript mode.