News for hackers. Stuff that matters.
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @08:41AM (#7108056)
Coming from Vim, when I switched to Emacs, I found the starting aesthetic experience more than lacking (or, ugly). It took me some time (and a helpful HN discussion) until I found good themes and good plugins to make it look aesthetically pleasing (to my eyes, at least, after all people's tastes differ).

If somebody is looking for a nice Emacs theme and feels that the OP is a bit too minimal, have a look at my Emacs conf (I know, shameless plug) here [1]

There's also a screenshot [2]

This configuration is kinda optimized for Emacs+Evil to be more like Vim, so you may just want to have a look at the theme / plugins.

[1] https://github.com/terhechte/emacs.d [2] https://raw2.github.com/terhechte/emacs.d/master/screenshot....

Re:Emacs, naked by mercurial on Thursday January 23, 2014 @10:05AM (#7108559)
I try out emacs every few years. Every time, I get discouraged whenever I attempt to do something simple (change the theme, etc) by the amount of configuration necessary. I may try your repo, since it seems to have a lot of stuff already configured.

The other thing is that Emacs is really slow to start as soon as you have a few plugins, compared to vim.

Re:Emacs, naked by saulrh on Thursday January 23, 2014 @10:31AM (#7108737)
Slow emacs startup isn't a problem thanks to the new emacs-server stuff. Running emacs with the "--daemon" flag will cause it to do initialization, fork into the background, and become persistent; now edit files using commands like "emacsclient $filename". Eamcsclient will connect to the daemonized emacs server and have it open $filename, bringing it forward either in an existing frame or (using the "-nw" or "-nc" flags) creating a convenient new frame to edit with. Not only does this give you the ability to get into emacs without going through init, the server will maintain all of your editing in the same process so you don't have to manage editor instances.
Re:Emacs, naked by cgore on Thursday January 23, 2014 @08:48PM (#7112893)
Slow emacs startup ... people restart their emacs?
Re:Emacs, naked by sdegutis on Thursday January 23, 2014 @11:21AM (#7109084)
There are serious problems trying to run it as a server on Mac OS X. Basically it's not a real option on this platofrm.
Re:Emacs, naked by __david__ on Thursday January 23, 2014 @12:27PM (#7109569)
I run Emacs on Mac OS X as a server. What I don't do is "emacs --daemon". I launch Emacs and then "M-x server-start RET". This seems to avoid any weird issues.

I use the "ec" script show here: http://emacsformacosx.com/tips

Re:Emacs, naked by jasonm23 on Monday January 27, 2014 @03:08AM (#7129333)
alias edemon='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon"

will give you a more helpful alias.

Re:Emacs, naked by jlatt on Thursday January 23, 2014 @11:54AM (#7109309)
I've been running emacs server for at least a year or two now on OSX using homebrew.

  "$(brew --prefix)/opt/emacs/Emacs.app/Contents/MacOS/Emacs" --daemon
Re:Emacs, naked by jfb on Thursday January 23, 2014 @12:09PM (#7109425)
Huh. This works for both -t and -c in emacsclient, with a vanilla build of pre-24.4. It didn't for ages, so thanks for getting me to check this out again!
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:41PM (#7109684)
I'm not very familiar with OS X, and I've had a lot of trouble finding the magic invocation that'll get an Emacs daemon running with the same behavior to which I'm accustomed on Windows and Linux. This looks like it should do the trick, thanks! Now if only I could get emacsclient to behave sensibly in the dock, I'd really be cooking with fire...
Re:Emacs, naked by sdegutis on Thursday January 23, 2014 @11:59AM (#7109333)
I wish I could muster the energy to figure out how going that particular route is flawed. I just know that it's one of the ones I tried, and I learned the hard way that it's got problems.
Re:Emacs, naked by ics on Thursday January 23, 2014 @12:07PM (#7109412)
If you accidentally quit the Emacs GUI, does it still kill the daemon?
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:39PM (#7109674)
If you run it with --daemon, the server process doesn't create a frame of its own, but only listens for connections from emacsclient instances; IIRC it also rebinds C-x C-c to delete-frame (also available at C-x 5 0), and the daemon process stays alive through everything short of M-x kill-emacs or similar.
Re:Emacs, naked by klibertp on Thursday January 23, 2014 @02:33PM (#7110572)
I have this:

    ;; schedule starting of Emacs server after everything else is loaded (5 min
    ;; *should* be anough for startup :))
    (run-at-time "5 min" nil 'server-start)
in my .emacs - this way I get both a window and a "daemon" server for use with emacsclient. I think it dies if the first frame is closed, though.
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @02:51PM (#7110699)
You can actually just put

    (server-start)
at the end of your init file, and it'll behave more or less as you intend; if you've got a lot of stuff hanging off after-init-hook, you might do well to hang server-start off it as well.

That said, yeah, it will create a window which if killed will shut down Emacs, so I tend to prefer invoking it with the --daemon option instead; that way, I don't have to worry about accidentally killing Emacs if I kill the wrong frame. (I also call server-start in my init file, but I'm not actually sure that is necessary when invoking Emacs with --daemon.)

Re:Emacs, naked by jfb on Thursday January 23, 2014 @03:57PM (#7111143)
If you're on a Mac (as I am) it leaves an Emacs application running (complete with menu bar and app switcher icon) that you can't interact with. But otherwise, --daemon works great.
Re:Emacs, naked by jhenahan on Friday January 31, 2014 @02:24AM (#7155741)
I'm on Mavericks running Emacs 24.3 installed through `brew`. I invoke `emacs --daemon` once when I start work and I have an alias and an Automator workflow to open files in GUI `emacsclient`s. No problems at all. What sort of issues are you seeing?
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @10:23AM (#7108686)
When, a few years ago, I really started to get serious about using Emacs, I spent three days or so going through the customization options for pretty much everything, or at least everything I could figure out at that time, and adjusting it to taste. Since then, I haven't had to touch it except for minor tweaks. Emacs is what they used to call "a moby frob"; some initial investment is required, and it took me three or four tries before I had the perseverance to stick with it, but the payoff has been handsome indeed.

As for slow starting, the best way to solve that is by running an Emacs server, and creating and killing client frames at need. You only pay the startup cost once that way, and all your editor instances share history, buffers, and everything else, which is sometimes handy, and doesn't get in your way otherwise.

Re:Emacs, naked by dilap on Thursday January 23, 2014 @10:54AM (#7108890)
The slow emacs startup problem can be mitigated by lazily loading custom modes as much as possible. The two big things to use here are autoload (instead of require) and eval-after-load.

On my machine, a vanilla emacs startup is ~70ms, and one with my fully-loaded .emacs is ~240ms. Still not as fast as I would like, but not terrible. (You can benchmark emacs startup from the command line with "time emacs --eval '(save-buffers-kill-emacs)'").

(Of course, even a 70ms startup for vanilla emacs is arguably pretty bad -- it's way slower than the ideal of "instant"; I just checked and vanilla vim is something like 8ms, for example, which is just-shy of imperceptible.)

Re:Emacs, naked by __david__ on Thursday January 23, 2014 @12:35PM (#7109634)
Using the Customize interface also helps. Variables that are customized go in a big list and don't get set individually, nor do they require their library to be loaded before they've been set.

A few years ago I went through my 10 years of accumulated .emacs cruft and switched everything I could to customize, and everything I couldn't to the technique you describe. I sped my emacs startup time from eight seconds down to one.

On top of that I switched to using emacsclient which makes startup instant.

Re:Emacs, naked by dilap on Friday January 24, 2014 @12:37AM (#7113512)
Nice, I didn't know customize was faster. I'll have to try that.

emacsclient doesn't really work w/ my workflow -- when I want a new emacs, I really want a new emacs. Also worth noting you get something similar "for free" when using the gui emacs on MacOS, via open -a Emacs (I use an alias).

I wonder if you couldn't somehow snapshot the state of emacs and dump it for a truly fast startup?

Re:Emacs, naked by pivo on Thursday January 23, 2014 @10:23AM (#7108682)
It's a lot better, and easier, in Emacs 24.3.x. Just run

   M-x customize-theme
And pick from a list of themes. New themes are installed via the new, built-in package manager:

   M-x package-list-packages
Re:Emacs, naked by sparkie on Thursday January 23, 2014 @10:35AM (#7108771)
Might also be worth trying out theme-park-mode[1], which allows you to easily cycle through installed themes till you find something you like.

[1]:https://github.com/emacsmirror/theme-park-mode

Re:Emacs, naked by terhechte on Thursday January 23, 2014 @10:20AM (#7108665)
If you try my repo, have a look at the custom keys that I defined, that helps things a lot.

Also, the one great feature about Emacs is MX (which I bound to CMD-. This opens the minibuffer where you can execute arbitrary EmacsLisp functions. Everything you do in Emacs (even arrow up, left or right) is bound to an Emacs function. So if you start out, and you want to do something, but you don't know the shortcut, just do CMD-. and start typing. The naming is really good. Say you want to deactivate line truncation. You go into MX and type "truncate" and among the results will be "toggle-truncate-lines" you go there, hit enter, and you're done. This is a bit more difficult in stock Emacs, as it has no wildcard search for MX but I'm using the Helm plugin, which offers this feature and makes it really really easy to find functions. I hardly ever use all these Emacs shortcuts like C-c C-e ... I just hit MX and type what I need to do.

Sadly, startup is still really slow for my configuration, which is why I have a Vim config with similar keys for quick Terminal usage. I start Emacs in the morning and keep it open all day. When I need to quickly fix something in the Terminal, I use Vim.

Re:Emacs, naked by aaronem on Thursday January 23, 2014 @10:27AM (#7108706)
An excellent point; having a command line in your editor is something whose value is hard to recognize until you've tried it, and hard to overstate once you're used to it.

It might, though, be worth using the typical Emacs nomenclature for key sequences, i.e. M-x where you use 'MX' and (assuming your Command key is bound to Meta, as is ordinary for OS X Emacs users) M-. where you use 'CMD-.' -- your choice of preferred nomenclature is of course up to you, but using the standard forms makes it easier for other users, particularly neophytes such as the one to whom your advice here is directed, to understand what you're describing and relate it to the Emacs manual and to whatever other resources they're using.

Re:Emacs, naked by terhechte on Thursday January 23, 2014 @11:09AM (#7108997)
I changed this because I found M-x to be really really difficult to type. It may be my hands or my fingers, but I have a hard time doing that key sequence correctly. Apart from that I think that you're absolutely right. I shouldn't have advertised this as it will probably confuse users.
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:42PM (#7109692)
Well, there's nothing wrong with rebinding M-x; that key combination requires a lot of hand scrunching, which can get uncomfortable after a while. Nothing wrong with talking about it, either! I'd just recommend describing it in accord with the conventions for Emacs key sequences, is all.
Re:Emacs, naked by creese on Thursday January 23, 2014 @11:00AM (#7108934)
Run emacs as a daemon. Then in a terminal type 'emacsclient -t'.

Instant on.

Re:Emacs, naked by astrobe_ on Thursday January 23, 2014 @12:47PM (#7109729)
I switch between Vim and Emacs depending on mood. It's a very hard deal: Emacs is a plateform that can do a lot of things besides editing, but it requires a lot of configuration fiddling, and is a bit too slow on the old machine on which I'm using it (must be a single core Pentium with Mandriva 9). Vim has a lot of things right off the box and is fast, but you have to use other programs to have a comfortable environment (mc, screen, ...).

Anyway. The trick with Emacs is to customize incrementally. Also, use customize-option as much as possible instead of editing your .emacs; too often people make you insert lines in your .emacs when already customization exists. Also, use the package manager (list-packages) that Emacs acquired recently instead of fetching from emacswiki or a github repo. It compiles automatically stuff, so it might help with startup times.

Re:Emacs, naked by massysett on Thursday January 23, 2014 @01:51PM (#7110230)
I switched to Emacs after being very impressed with nxml-mode. I found no better xml editor on Linux.

Emacs is great if there is a mode that's written for what you're doing--for instance, nxml-mode. I can imagine it's also great for C, for instance, because that mode is old and has seen lots of work. For lisp I'm sure Emacs is peerless.

Emacs is not so great if there's not a good mode for you. I grew frustrated trying to edit Haskell in Emacs; there are a bunch of half-baked modes out there. The problem is that without a good mode, even basic tasks like indentation are painful in Emacs, while Vim will indent anything well without a specific mode.

Often cited as Emacs' biggest advantages is how it integrates with other tools or, perhaps, how Emacs can become those tools. You can run your debugger in Emacs. You can read mail in Emacs. You can do version control in Emacs. The problem is that Emacs is never truly good at any of those other things. Running a shell in a buffer has problems. (You can run a shell inside a real terminal emulator in Emacs, but by that point you might as well just use a real terminal outside of Emacs.) Emacs is not a great mail reader. It's not great at doing version control and, what's more, it doesn't keep you from having to learn your underlying VCS, so now you have to know two ways to do things. Same goes for dired--it's a completely different way to manage files, but you still need to know how to use a real shell, so it just ends up being too much trouble to learn dired.

The thing is, when you strip out all the other stuff Emacs is supposedly good for--managing files, being a terminal, etc.--all you're left with is a middling editor with a good lisp interpreter. That other stuff is supposed to make Emacs great, but it all ends up being middling too.

So I have switched back to Vim. It excels at being an editor and doesn't try to do other stuff. In some ways Emacs is still better (for instance its support for multiple "frames" is something Vim can't get close to.) But with Vim I spend less time fiddling with the editor and more time editing text. If I ever need to do something for which there is an outstanding Emacs mode (edit XML, for instance) I will load up Emacs for that. But without a good mode Emacs is not worth it.

Re:Emacs, naked by fafner on Thursday January 23, 2014 @05:20PM (#7111736)
> I grew frustrated trying to edit Haskell in Emacs; there are a bunch of half-baked modes out there.

What's wrong with the normal haskell-mode? https://github.com/haskell/haskell-mode

(interestingly another commentator here claims that Emacs' Haskell indentation is superior to VIM's https://news.ycombinator.com/item?id=7111521)

> It's not great at doing version control [...]

Have you tried magit? It's probably the best version control support I've ever seen in an editor.

Re:Emacs, naked by massysett on Thursday January 23, 2014 @05:32PM (#7111845)
> What's wrong with the normal haskell-mode?

The indentation doesn't work well. It gets the indentation right maybe 80% of the time, but missing it 20% of the time is a big deal when you have to deal with the "tab-cycle." I spent so much time fiddling with indentation that I turned off auto indentation...and Emacs without mode-based auto indentation is much worse than Vim with manual indentation.

I also had problems with inferior-haskell-mode. I could have tried to fix them but I was fed up with futzing with Emacs, especially when I can go to Vim and just use ghci in a terminal.

A response might be "but you can use ghci in a terminal and still use Emacs." Which is true, but then I'm using a not-so-great editor that's not fulfilling its promise of integrating other tools. What's the point?

> Have you tried magit?

Yep. I still need to know Git and its command-line interface. With magit I was spending time learning magit, but not getting functionality beyond what the Git command line offers. Not worth it.

It seemed to me I was spending time learning tools in order to justify my use of Emacs. That's backward, so I stopped. I could have kept using Emacs without the other baked-in Emacs tools...but then you're just left with an editor. In that case I will pick Vim since it's the better editor.

Re:Emacs, naked by Filligree on Thursday January 23, 2014 @09:25PM (#7113006)
Did you try all three indentation modes?

It's a bit unfortunate that there have to be three separate indenters, but most people find that one of them is good enough.

Re:Emacs, naked by massysett on Friday January 24, 2014 @06:59AM (#7114495)
Yep, tried all three, and looked at at least one mode that someone else is developing to see if it had better indentation. I don't remember the names of the three indenters being all that distinguishing, so I had to keep notes in my .emacs just to tell them apart.

One good indenter (maybe with options to select how to style your code) would be better than three. I remember reading a blog post about how hard it is to indent Haskell automatically. It breaks my chain of thought though to have something automatic that works only most of the time. It means I routinely have to stop to fiddle with the editor to make it indent correctly.

Re:Emacs, naked by jhenahan on Friday January 31, 2014 @02:20AM (#7155734)
Have you tried structured-haskell-mode[1]? There are video demonstrations here[2].

[1]: https://github.com/chrisdone/structured-haskell-mode

[2]: https://www.youtube.com/playlist?list=PLlzKKtH5TyE-R-k86na3b...

Re:Emacs, naked by charlieflowers on Thursday January 23, 2014 @07:58PM (#7112698)
I see where you're coming from here. But my conclusion was that Emacs with Evil is just as good an editor as Vim. And as a bonus I get the complete customizability of Emacs.

So when you say "I will pick Vim since it's the better editor," what Vim features in particular (beyond modeful editing, which Evil provides) make you say that?

Re:Emacs, naked by massysett on Thursday January 23, 2014 @08:15PM (#7112775)
>(beyond modeful editing, which Evil provides)

This is exactly my point. The Emacs mentality is that Emacs can do everything...it can even be Vim. Why should I do that when I can just use Vim? Maybe Emacs can do anything, but it doesn't do anything well unless you've got a dynamite mode. Evil is not going to be as good of a Vim as Vim. I can tell that even with a glance at the Evil website. One of the best things about Vim is the extensive documentation. Evil just has a 22 page PDF manual...lots of which is filled with Emacs Lisp. So if I use Evil, I then need to spend time learning Evil and how to customize it with Emacs Lisp. Or I can just use Vim.

Re:Emacs, naked by aaronem on Thursday January 23, 2014 @09:38PM (#7113059)
Ritchie's riposte seems apropos here: "If you want [Vim], you know where to find it."
Re:Emacs, naked by john2x on Friday January 24, 2014 @04:31AM (#7114088)
I feel exactly the same way.

I was hoping I could get a "minimal" setup to edit Python code, and even that was too much to ask for. "Code folding? What's code folding precious? What's code folding?" --Smeagol

Apparently "minimal" doesn't apply to Emacs. Being complex is in its nature. It wants to become everything.

The worst was how every time you open a different file, your `CWD` always changes to that file's location.

Re:Emacs, naked by terhechte on Friday January 24, 2014 @09:14AM (#7114910)
Interesting, I consider that a great feature. That always bugged me in Vim. When I open a file in a different location, most of the time I want to be in that CWD. I guess it depends on how people work.
Re:Emacs, naked by mercurial on Friday January 24, 2014 @01:14PM (#7116383)
Oh, yeah, that drives me crazy too. Usually, I cd to the root of whatever project I'm working on, and I want all paths to be relative to the root of that project (though since I started to use ctrlp[1], it's less relevant).

1: https://github.com/kien/ctrlp.vim

Re:Emacs, naked by klibertp on Thursday January 23, 2014 @02:42PM (#7110633)
As for customize-option, if you don't want options to clobber you main init file you can do this:

    (setq custom-file "~/.emacs.d/custom.el")
    (load custom-file)
It's good for version control and for separating manual changes from customizations.
Re:Emacs, naked by onedognight on Thursday January 23, 2014 @01:58PM (#7110286)
> The other thing is that Emacs is really slow to start as soon as you have a few plugins, compared to vim.

This just mean you are "doing it wrong". Your .emacs file should not be loading anything, but instead setting things to be loaded when needed using autoload, eval-after-load and auto-mode-alist.

Re:Emacs, naked by barik on Thursday January 23, 2014 @02:22PM (#7110493)
It's possible that both of you are actually right, depending on the package. For example, "plugins" (such as Flymake, or modern variants) can indeed cause the editor to slow to a crawl. Likewise, I had to turn off real-time spelling checking for LaTeX documents in Emacs for this very reason -- on dissertation-size documents it was simply unbearable, and every few sentences the editor would just spin for a bit [2].

[1] http://flymake.sourceforge.net/

[2] http://ergoemacs.org/emacs/emacs_spell_checker_problems.html

Re:Emacs, naked by klibertp on Thursday January 23, 2014 @02:38PM (#7110606)
Also make sure all your plugins are byte-compiled, this can shorten loading time significantly. Not a problem for elpa/package.el plugins, but I have quite a few plugins managed manually (I'm still not using el-get, shame on me) and the way I byte compile them all at once is to place a cursor on a directory with them in dired and issuing:

    C-0 M-x byte-recompile-directory
The C-0 prefix arg causes it to recompile everything without asking for confirmation for every file.
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @09:29PM (#7113014)
You could automate this with a function hung off the after-load-functions hook. Here's something off the top of my head:

     (defun foo-compile-if-newer (path)
       "A function suitable for hanging off `after-load-functions',
     which will byte-compile an Emacs Lisp source file for which there
     is no pre-existing compiled file, or there is a compiled file 
     older than the source."
       (and (save-match-data
               (not (null (string-match "el$" path))))
            (let ((elc-path (byte-compile-dest-file path)))
              (if (or (not (file-exists-p elc-path))
                      (time-less-p (nth 5 (file-attributes elc-path))
                                   (nth 5 (file-attributes path))))
                  (progn
                    (message "Auto-%scompiling %s..."
                             (if (file-exists-p elc-path) "re" "") path)
                  (byte-compile-file path))))))
     
     (add-hook 'after-load-functions
               'foo-compile-if-newer)
Adding an exclusion list, if you feel the need for one, is left as an exercise for the reader.
Re:Emacs, naked by dilap on Thursday January 23, 2014 @11:08AM (#7108991)
Very interesting thing you've got going there, and I love the visual aesthetic. Two quick tips that you probably already know, but just in case it's useful to you or someone else:

* Emacs can wrap lines at word boundaries, while intelligently preserving/extending indentation (something like this: https://gist.github.com/anonymous/8581161)

* If you're using emacs on the mac, it's worth taking a look at the railwaycat fork ("brew install emacs-mac"). Some improvements over vanilla emacs: Emoji (and other fun unicode) display works, fullscreen and maximize work better, scrolling with the trackpad works in a reasonable way.

Re:Emacs, naked by __david__ on Thursday January 23, 2014 @12:44PM (#7109701)
Also, note that Emacs 24.4 (currently unreleased) will have improved full screen support and better color support (same effect as "brew install emacs --srgb"). I've been using the Emacs head (from a month ago) and it's been very stable for me.

For sane trackpad scrolling in vanilla Emacs I use this:

    '(mouse-wheel-scroll-amount (quote (0.01)))
Re:Emacs, naked by _telemachus on Thursday January 23, 2014 @01:15PM (#7109934)
Thanks for the tip about railwaycat's fork. Note though that before you can run:

    brew install emacs-mac
you first need to run this:

    brew tap railwaycat/emacsmacport
Otherwise, `brew` won't be aware of that version. (Whoops. Noticed just now that someone said this earlier as well. Since the comments are all spread out, I'm leaving mine in case it helps someone see the issue faster.)
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @11:37AM (#7109199)
Thanks for these tips, I'm already using the railwaycat fork, and it is really good. I compiled it myself though, didn't know that I can get it via brew now. That is fantastic, as I'm still on 24.3.1 :)

Also, I didn't know about the wrap-while-keeping indentation, that's something I always wanted. Will try it out later. Thanks!

Re:Emacs, naked by abrowne on Thursday January 23, 2014 @11:14AM (#7109031)
I think you need to "brew tap railwaycat/emacsmacport" first to install that.
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:43PM (#7109698)
I built it from scratch, only using Brew to install the necessary image format libraries, and that worked fine too.
Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:44PM (#7109704)
Seconding the recommendation for the Railwaycat fork, which is excellent. I just wonder about how quickly it'll be integrated into the 24.4 codebase, once that version drops; I'm really looking forward to file change notification support, for example so that Emacs can autorevert my Dropbox-synchronized Org files when it sees that they've been synced.
Re:Emacs, naked by blueblob on Thursday January 23, 2014 @03:07PM (#7110842)
Not trying to be a douche, but trying to get an honest answer: if you are coming from Vim, using Evil-Vim to get Vim-like commands why use Emacs in the first place? What features do you use/did you want that made you switch?
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @03:19PM (#7110928)
Primarily I wanted to write my own extensions in an integrated language with a good, honed, text api. Vimscript is really not so nice, and Emacs has a fantastic text / editor API that's a pleasure to work with.

Other features that were important to me were - Org Mode (I'm using it for all documentation now)

- Usability: As described below, every function in the editor can be accessed with a quick command (with pattern matching to find the correct one) vs. knowledge of arcane commands in vim. Also, most modes offer convenient access to all their features in the menu bar. So when I'm using a Clojure mode, and I can't currently remember the correct command / keystroke for changing the current Repl namespace to my current file, I click the menubar and there it is. All neatly listed. Makes it a lot easier.

- I like the Emacs way of having all in one window. I have one big fullscreen window with multiple buffers, and in there I have a terminal, a repl, multiple code windows, html documentation. So I never have to leave that mode. Keeps me productive. That is also kinda possible with tmux and Vim, but then I always had overlapping keyboard shortcuts for switching windows. All in all Emacs works better for me here.

- Lots of small things, in general Emacs feels like a much more solid editor, with more configuration options to fit it to my liking.

Re:Emacs, naked by blueblob on Thursday January 23, 2014 @03:50PM (#7111095)
Fair enough.

Lots of people dislike vimscript and although I think you can also write plugins using python, it also seems more difficult to interface with.

I know that you can have a big fullscreen window with multiple buffers and a terminal and a repl in terminal vim without tmux. I guess you are not interested but you could see multiple buffers with :vsplit or :split to get vertical and horizontal splits, respectively. There are plugins for a terminal/repl.

Org mode sounds interesting to me, one of the things that I miss from eclipse is that I could see the javadoc when I held the mouse over an object/method/function, is that what Org mode does?

Thanks for the reply.

Re:Emacs, naked by terhechte on Thursday January 23, 2014 @04:01PM (#7111165)
I know about vsplit and split, what I meant was a better terminal than conqueterm. Now, the Emacs ansi-term is also not perfect, but way better than Conqueterm.

Org mode is a very sophisticated Todo and documentation and wiki and calendar and management and literal programming system for Emacs. I haven't found anything that compares to it. It is really really good.

The java doc thing is something entirely different, and that's usually made possible by the various language modes.

Re:Emacs, naked by Crito on Thursday January 23, 2014 @04:14PM (#7111245)
I haven't made the switch yet, mostly because I am not enamored with elisp (when the hell is that guile-emacs thing going to properly get off the ground? Probably never...), but the basic design of emacs (C core, everything else built up around it with a lisp) appeals to me greatly.

If I ever do make the switch, I'll definitely still be using Evil mode though. I can't drop vi-editing, and don't want to anyway.

Re:Emacs, naked by zem on Thursday January 23, 2014 @04:54PM (#7111521)
emacs's autoindentation for several languages (e.g. haskell) is a lot better than vim's. that all by itself is a compelling reason to use evil for those languages.
Re:Emacs, naked by anuragramdasan on Thursday January 23, 2014 @09:16AM (#7108239)
What line numbering plugin is this? Looks very similar to vim numbers. I've been trying to find something like that for emacs for a while now. All I found wasLinum mode, which clutters the UI and doesnt give relative line numbering.
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @09:45AM (#7108424)
Hey, I'm using relative-number: https://github.com/terhechte/emacs.d/blob/master/plugins/rel...

It mostly works as well as in Vim, except if you're using Code folding, which confuses it a bit.

Re:Emacs, naked by fafner on Thursday January 23, 2014 @10:21AM (#7108667)
Why do you want line numbers next to your code at all? Aren't they just visual clutter? The current line number is shown in the mode-line anyway.
Re:Emacs, naked by klibertp on Thursday January 23, 2014 @02:54PM (#7110736)
Relative line numbers are especially useful when you have mis- or not configured moving by paragraphs/defuns/classes/etc. for some particular mode. C-16 C-p will move the point 16 lines up, for example, supposedly exactly where you want it to be. But that's not the use case I need line numbers for - actually, well configured movement commands + isearch + ace-jump + iy-goto-char + occur is a combo which makes relative line numbering completely unnecessary.

I use (non-relative) line numbers quite often though, and it when I need to tell my colleague that there is this function in some file, on line 323, with a some interesting statement between lines 330 and 336. This makes it extremely easy for them to get to where I am and see exactly what I see; and on the other hand I don't need to move point to those three lines to read their numbers or - absolutely nightmarish - to count the positions manually - they are just there, for me to see.

It would be better to show and hide linum with some simple binding, but I'm already used to them, so it's not a big deal for me.

Re:Emacs, naked by rbonvall on Thursday January 23, 2014 @10:34AM (#7108762)
At least in Vim, line numbers help to move around and operate on text really quickly.

Move cursor to ninth line above: 9k

Delete from here to seventh line below: 7dd

Copy thirteenth line above after second line below: :-13t+2

Having line numbers always visible (either relative or absolute) helps for doing this operations quickly.

Re:Emacs, naked by aaronem on Thursday January 23, 2014 @12:46PM (#7109725)
Emacs offers goto-line on M-g g or M-g M-g, which admittedly is not the handiest of key sequences; I've been thinking about rebinding that to be more useful, but I don't use it often enough to really need to.

Line numbers are also useful, for example, when doing web development, and hunting down the line that's mentioned in a stack trace. Absent integration between the browser's debugger and Emacs, which is something I've fiddled around with (based on mozrepl) but never got working, that's a good second best.

Re:Emacs, naked by bzg on Thursday January 23, 2014 @09:07AM (#7108187)
Oh, nice mode-line! I can't figure out how to get the theme from your repo, any hint?
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @09:52AM (#7108478)
Hey, I'm using the Soothe theme, with local modifications: https://github.com/terhechte/emacs.d/tree/master/elpa/soothe...

The original can be found here: https://github.com/emacsfodder/emacs-soothe-theme

Another nice theme is Cyberpunk: https://github.com/n3mo/cyberpunk-theme.el

As jbeja answered, I'm using powerline with the default theme for the status bar: (require 'powerline) (powerline-default-theme)

Re:Emacs, naked by jbeja on Thursday January 23, 2014 @09:24AM (#7108291)
I believe that is emacs powerline: https://github.com/jonathanchu/emacs-powerline
Re:Emacs, naked by bzg on Thursday January 23, 2014 @09:47AM (#7108436)
This is it, thanks. Beautiful, but too bad there is no easy way to deactivate it.
Re:Emacs, naked by jasonm23 on Monday January 27, 2014 @03:02AM (#7129318)
I am super glad to see Soothe being used / well loved. Thanks for using it.
Re:Emacs, naked by antonios on Thursday January 23, 2014 @01:18PM (#7109948)
Very nice. Which font is this?
Re:Emacs, naked by terhechte on Thursday January 23, 2014 @02:17PM (#7110453)
It is M+ http://mplus-fonts.sourceforge.jp/

Can't recommend it enough. Beautiful monospaced font for terminal and editor. And the light version works great on my 11" Macbook Air as it consumes less pixels and therefore allows more code to be visible.

Re:Emacs, naked by quesebifurcan on Thursday January 23, 2014 @01:56PM (#7110263)
I think he's using PragmataPro. If not, it's very similar. Beautiful font, one of my favorites.