Live data from Hacker News

Learning Emacs, any tips or tricks, best tutorial?

news.ycombinator.com

1–10 of 18 posts

Learning Emacs, any tips or tricks, best tutorial?

#1
For many many years I used my own, homebrew editor, aptly named 'e' (I don't like typing more than I need to). This worked quite well until about a decade ago when I started to work more and more on other peoples machines and it bothered me that I always had to spend time to move my environment with me. So I decided to standardize on the minimum that is always available, which turned out to be vi(m).

This worked really well for a long time, even though I never got to the level of being a poweruser I managed to get through the day.

I've used 'leo' for a while, an awesome little project, it is essentially a literate programming editor and I really liked the concepts behind it but it has some serious shortcomings as well (does not work in terminal mode), so I had to let that go.

I've decided now to invest serious time into learning a new editor and have chosen to leave vi(m) behind and to move to emacs.

Are there any tips & tricks that you think I should be aware of? I've googled a bit for guides on learning Emacs but nothing that strikes me as suitable turned up, however I can't imagine that I'm the first to try this, the key 'emacs tutorial' turns up a wild variety of material, too much to choose from really and lots of it of questionable heritage and/or dated (which may not be bad by itself).

What would you use as a starting point if you were to point a new emacs user to today?

Re: Learning Emacs, any tips or tricks, best tutorial?

#3
The GNU Emacs Manual is pretty comprehensive (http://www.gnu.org/software/emacs/manual/html_node/emacs/ind...)

One of the things about Emacs I've discovered over the years is that you never finish learning it. It's so extensive. That's how I ended up reinventing this wheel: http://blog.jgc.org/2013/03/automatic-bookmarking-locations-...

Re: Learning Emacs, any tips or tricks, best tutorial?

#6
Hello,

as someone who shied away from regular IDEs to use Emacs for programming work, I would recommend that you start setting things up for some very specific need.

As it was already pointed out, Emacs is huge and you will never stop learning it. Therefore, if your main line of work implies writing Java code, I would recommend you look for some tutorials that are particularly aimed at that, and build on those as you need more out of your editor. For example right now I am looking at learning org-mode to be able to do time tracking with it.

If you seriously consider using Emacs all the time I would recommend remapping the Ctrl key to Caps Lock for easier typing.

Since you were asking for some tutorials, these are the two tutorials that I found most useful in defining my Emacs setup:

https://sites.google.com/site/steveyegge2/effective-emacs - specific things that are very useful in your configuration

http://devblog.avdi.org/category/emacs-reboot/ - someone in the ruby community, remaking his emacs config from scratch and explaining it as he goes

I am no where near a proficient Emacs user, but maybe I can provide some insight as a fellow learner if you get stuck. I believe my e-mail should be in my profile if you have any problem starting up with Emacs.

Have a nice day, Vlad

Re: Learning Emacs, any tips or tricks, best tutorial?

#9
post #6

Hello, as someone who shied away from regular IDEs to use Emacs for programming work, I would recommend that you start setting things up for some very specific need. As it was already pointed out, Emacs is huge and you will never stop learning it. Therefore, if your main line of work implies writing Java code, I would recommend you look for some tutorials that are particularly aimed at that, and build on those as you…

This absolutely, best way to learn is to have a specific goal in mind. I got started with emacs because I was using an IDE called RStudio (http://www.rstudio.com/) which I really liked, and I wanted something similar for python but couldn't find anything to suit my needs. I set out to recreate the functionality of RStudio in emacs and have (largely) succeeded. It took a lot of mucking around but I really learned my way around the editor.

Re: Learning Emacs, any tips or tricks, best tutorial?

#10
I agree with the people recommending the built-in tutorial (C-h t) and the official manual. Emacs' documentation is very good.

Also, the basics of Emacs haven't changed since forever so some of those dated resources you mention may be just fine.

Good luck! I hope you like it.

Post reply on HN