Replies: 3 comments
-
The solution that Emacs and Vi(m) have developed for this is to have a specially-formatted line in a header comment in the file. So, if you use Emacs, you might have a header like: // -*- mode: c -*- In vim, that would be: // vim: set ft=c : I don't think it makes sense for So, the basic pattern would be:
|
Beta Was this translation helpful? Give feedback.
-
If the file has the comment |
Beta Was this translation helpful? Give feedback.
-
It should be easy: add this to
Unfortunately it doesn't currently support the |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm currently getting acquainted with Micro and so far it seems like a really good text editor and a great replacement for nano.
So far my only issue / question is how make it so that a config file (such as
~/.config/i3/config
which has no file format) to always open with my preferred syntax highlighting. As of now it always opens withft:unknown
, whereas I would like it to open withft:shell
. Theset filetype shell
command seems to only do it for the session I'm using here and now so that I'd have to do it manually next time I open it.Any and all help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions