The best way of learning Elisp is reading the source code that is distributed with Emacs. Do a git checkout of Emacs and read Elisp code written by Stefan Monnier. Stay away from org-mode elisp - the quality of that code base is highly suspect.
Ask HN: Resources to grok Emacs and use it well?
41–50 of 179 posts
Re: Ask HN: Resources to grok Emacs and use it well?
#42Even after close to a decade of Emacs usage, I learned more about Emacs using Spacemacs for a month than I thought possible.
Re: Ask HN: Resources to grok Emacs and use it well?
#43I used emacs for a couple years on a linux laptop with a full keyboard, and I loved it. Then I got into more teaching than programming, so I moved to some beginner-friendly editors; I wanted to use the same tools I was recommending for my students.
Now I'm doing more dev work again, and I really miss emacs. But I'm a little lost about how to map keys so I can jump between my laptop in standalone mode, my laptop when I have an external keyboard connected, and non-mac linux machines.
Re: Ask HN: Resources to grok Emacs and use it well?
#44then start with
Absolute Beginners Guide to Emacs http://www.jesshamrick.com/2012/09/10/absolute-beginners-gui...
follow up with Emacs' tutorial and online help
follow up with Mike Zamansky videos on YouTube https://cestlaz.github.io/stories/emacs/
finally check out the blog entries (and the book !) at https://www.masteringemacs.org/
Re: Ask HN: Resources to grok Emacs and use it well?
#45http://emacsrocks.com is a great introduction.
Re: Ask HN: Resources to grok Emacs and use it well?
#46Emacs user here, it's been my go-to editor for about 40 years. I have a few customizations, not many. My .emacs file is 63 lines long, doesn't include any other files, and mostly just tweaks some key bindings and turns off features that I don't like. The only modes I use are built-in ones (e.g., C-mode, auto-wrapping text mode, etc.). I can't write elisp without a reference manual, and I think that's okay. I suggest:…
I had to go to Spacemacs[1] for a few reasons: - Using the spacebar to invoke functionality is a massive physical boon to usage. Stock emacs wrecks me from fingers to neck for an real amounts of usage. This is a purely subjective weakness. - Spacemacs vi emulation. I drank the modal Kook-aid. Especially if one has to SSH into headless instances in the cloud. vi is part of the POSIX standard, so you know it's there an…
Re: Ask HN: Resources to grok Emacs and use it well?
#47Earlier quoted context omitted.
There is another positive side effect of limiting customization to reasonable levels. Default Emacs shortcuts are hidden everywhere. Most importantly, bash understands them, as well as many other REPLs (erlang, ghci, julia, ...). Developing muscle memory for the default Emacs allows one to use many tools much more efficiently.
Default Emacs shortcuts are bad for RSI. Even the original author of Emacs has had to cut down pretty dramatically on their coding activity, due to getting "Emacs pinky" and other RSI problems.
evil is also great, and it might actually be the most popular option for new users at this point, thanks to Spacemacs and Doom.
Re: Ask HN: Resources to grok Emacs and use it well?
#48magit is a fantastic git UI. helm is a great ui for searching lists of things(used very often)
Re: Ask HN: Resources to grok Emacs and use it well?
#49Earlier quoted context omitted.
Also seconding. Vanilla emacs is already extremely powerful, and if you're doing real work, you'll end up having to use hosts that don't have all of your wonderful enhancements installed. It's good to know vanilla emacs. Beyond that, add language modes for anything you need that's not already included. If you use 'git', 'magit' is very nice. Beyond that, helm is interesting, though very large and kind of mind-blowing…
> if you're doing real work, you'll end up having to use hosts that don't have all of your wonderful enhancements installed. It's good to know vanilla emacs. If you're talking about production hosts, they shouldn't really have vanilla emacs installed either. Not having your creature comforts present on production machines is a feature, like the red shell prompt / terminal background some people use, a reminder to get…
Tramp is great, but not all such hosts are reachable that way.
> I prefer not to even touch other peoples' laptops/keyboards.
Me too, but that's why they call it work.
Re: Ask HN: Resources to grok Emacs and use it well?
#50Earlier quoted context omitted.
I had to go to Spacemacs[1] for a few reasons: - Using the spacebar to invoke functionality is a massive physical boon to usage. Stock emacs wrecks me from fingers to neck for an real amounts of usage. This is a purely subjective weakness. - Spacemacs vi emulation. I drank the modal Kook-aid. Especially if one has to SSH into headless instances in the cloud. vi is part of the POSIX standard, so you know it's there an…
You can also just run evil mode for the vi emulation (its what spacemacs does), spacemacs is the best emacs IDE though IMHO.