After looking for a mode for .ini
files, I found ini-mode
via MELPA, but upon installing it in Emacs 26, there was a message about it being an obsolete mode. What are the alternatives? In my limited testing, conf-mode
seems to work for .ini
-style files too, but I'm wondering whether there are other solutions that are specifically about .ini
files. In terms of functionality, I'm primarily looking for syntax highlighting and indentation.
-
Primarily opinion-based, and unclear. Should be closed. Define "modern". Define "better". What syntax highlighting and indentation? Etc.– DrewApr 24, 2020 at 20:11
-
Edited in an effort to make it more objective.– mhuckaApr 24, 2020 at 21:01
-
@mhucka, ini-mode should work with Emacs 26. Which warning message did you get?– LindydancerApr 25, 2020 at 19:26
1 Answer
conf-mode.el
says:
This mode is designed to edit many similar varieties of Conf/Ini files and Java properties. It started out from Aurélien Tisné's
ini-mode
.conf-space-keywords
were inspired by Robert Fitzgerald'sany-ini-mode
.
So conf-mode
seems to be what you're looking for (and comes with Emacs).
-
The help for the
conf-mode
function (at least in Emacs 26.3) does not mention ini files. I guess I should have looked in the source file!– mhuckaApr 25, 2020 at 2:46