On Fri, 15 Apr 2016 11:32:16 +0200 Marco Marongiu <
bront...@gmail.com> wrote:
MM> On 15/04/16 11:27, Christian Linden wrote:
>> What's emacs good for?
MM> /me grabs popcorn and waits for Ted to reply
Well, I don't want to imply vim is bad in any way. Like Nick, I use
both. vim is a kick-ass editor. I find it a bit suboptimal for CFEngine
editing specifically but often jump into it for other tasks. For
CFEngine editing, I use and maintain the cfengine.el mode that's part of
Emacs (so you just run a recent version of Emacs and most of this stuff
will Just Work). So what's the benefit?
I like the Flycheck integration. It lets me see when I make mistakes
immediately:
http://i.imgur.com/xO7GBrG.png
I love the ElDoc integration. It shows me function parameter names and
allowed values:
http://i.imgur.com/T9I4k2i.png (this shows the return
type and allowed parameters of the execresult() function)
The syntax highlighting and indentation are really useful too:
http://i.imgur.com/P9jG9xM.png
These are the CFEngine-specific things I use. Besides that, Emacs can
also do general editing and syntax checking of JSON, YAML, shell
scripts, and many other languages and tools, locally and remotely. It
works the same way on Mac OS X, Windows, Unix. So for me, it's been a
good environment.
Ted