Learning Emacs, any tips or tricks, best tutorial?
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).<p>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.<p>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.<p>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.<p>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).<p>What would you use as a starting point if you were to point a new emacs user to today?
17 comments
[ 5.3 ms ] story [ 49.5 ms ] threadM aka Meta is generally Alt on a PC keyboard or Alt+Esc on a Mac.
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-...
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
http://shop.fsf.org/product/Emacs_Manual_24/
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.
[1] http://www.openbsd.org/cgi-bin/man.cgi?query=mg
- install the emacs starter kit [0] as it's much user friendly than the raw emacs
- learn the most used shortcuts (C-w to cut, M-w to copy, C-Y to yank (paste), C-x C-s to save, C-x C-f to open a file, C-k to kill a text, C-a to go at the start of a line and C-e to go at the end, etc.)
- try to use emacs for everything and slowly get more and more comfortable at it.
[0] https://github.com/technomancy/emacs-starter-kit
I used to Vim too, and started using Emacs since I started doing a lot of Clojure development. Since then, I have not looked back. The power and flexibility of Emacs is second to almost none. Just the other day, I was working on a Latex file, and I had a buffer open with a pdf viewer right next to my tex file, that would update as soon as I saved changes to my tex file. And the community has done almost everything you can think of already. If not, just write it yourself!
To get started, I would highly recommend using Emacs Prelude: https://github.com/bbatsov/prelude It's incredibly useful and user friendly, and makes your Emacs all the more powerful. This is a good intro article to it: http://batsov.com/prelude/
The other blog that I find useful even as a fairly seasoned Emacs user is http://www.masteringemacs.org/ It has some great guides and tutorials for beginners too.
Which _is_ emacs, but with Mac friendly bits. At first I used it simply as a replacement for Textmate, then later got into things like TRAMP, and org-mode.
I didn't need a guide or a how-to. Every so often I would wonder 'I wonder if Emacs can do this, or that', google it, and learn that it could.
and a great introduction to setting up emacs http://batsov.com/articles/2012/10/14/emacs-on-osx/
posts on various emacs topics http://www.masteringemacs.org/