|
|
Subscribe / Log in / New account

Making Emacs popular again

Making Emacs popular again

Posted May 8, 2020 12:34 UTC (Fri) by mpr22 (subscriber, #60784)
In reply to: Making Emacs popular again by pebolle
Parent article: Making Emacs popular again

How would one go about achieving the following without a vimrc?

automatically switching formatoptions from tcqn (the intuitive-for-me behaviour for "plain text") to crqnj (the intuitive-for-me behaviour for "code")

setting cinoptions to conform to my personal coding style

setting expandtab when editing non-Makefile code

clearing expandtab when editing Makefiles

setting expandtab, sts=4, and sw=4 when I am editing documentation written in Markdown


to post comments

Making Emacs popular again

Posted May 8, 2020 12:44 UTC (Fri) by pebolle (guest, #35204) [Link] (1 responses)

Do it manually, every time, for eternity.

Yes, that's quite a chore, but I personally couldn't summon the strength to start a new .vimrc from scratch. Yes, I know, I'm weak.

Making Emacs popular again

Posted May 8, 2020 13:52 UTC (Fri) by mpr22 (subscriber, #60784) [Link]

If I've gone to the trouble of composing a cinoptions line, it's going in a file (because there's no way I'm hand-typing it more than once).

That file might as well be called $HOME/.vimrc :)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds