Live data from Hacker News

Mastering Emacs

masteringemacs.org

81–90 of 102 posts

Re: Mastering Emacs

#81

Earlier quoted context omitted.

Swap your CTRL and caps lock keys. It will make it a lot easier to use.

Nope, don't do that. Learn to proper touch-type instead. Use your palms to press the ctrl keys. See: http://ergoemacs.org/emacs/swap_CapsLock_Ctrl.html . You can then use Ctrl+m instead of Enter at the command line, as well. Save both pinkies from the extra effort.

Palm/ctrl won't work on most laptops, especially since nearly all of them have chiclet keys these days.. heck, more and more desktop keyboards do too.

Remapping capslock to ctrl on all my machines turned out to be one of the best things I have ever done. It helps me with far more than emacs.

Re: Mastering Emacs

#82

Earlier quoted context omitted.

Swap your CTRL and caps lock keys. It will make it a lot easier to use.

Nope, don't do that. Learn to proper touch-type instead. Use your palms to press the ctrl keys. See: http://ergoemacs.org/emacs/swap_CapsLock_Ctrl.html . You can then use Ctrl+m instead of Enter at the command line, as well. Save both pinkies from the extra effort.

Also, Ctrl+j works as 'enter' as well.

A decent subset of emacs keybindings work in anything that uses gnu readline or similar library (ctrl+a|b|f... etc).

Re: Mastering Emacs

#83

Earlier quoted context omitted.

That git repo claims to be retired. I get my emacs from here http://emacsformacosx.com

You misunderstand. The repo you're referring to is Railwaycat's mirror of Yamamoto Mitsuharu's codebase. (which previously was only available via ftp and tarballs.) Yamamoto has recently migrated to git and hosts a repo at Chiba U, the address is: http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git HOWEVER. Railwaycat does still maintain the Homebrew tap and formula for installing Emacs Mac Port Here: https://git…

So what is the benefit compared to the emacs port 'emacs'?

Re: Mastering Emacs

#84

I would personally recommend using vim bindings in emacs, as they are (in my opinion) easier to make sense of and more intuitive. However, I'm sure this book is a great resource for all the other stuff and it seems very well put-together.

spacemacs (includes evil) plug: https://github.com/syl20bnr/spacemacs Really great.

Spacemacs is absolutely amazing. I've done the rounds with emacs - trying it vanilla and rolling my own config, or using the various pre-made configuration packages (prelude, emacs-live, starter-kit, etc), sometimes with evil, sometimes without, and nothing has ever come close to what they've pulled off with spacemacs.

Re: Mastering Emacs

#85

Earlier quoted context omitted.

You misunderstand. The repo you're referring to is Railwaycat's mirror of Yamamoto Mitsuharu's codebase. (which previously was only available via ftp and tarballs.) Yamamoto has recently migrated to git and hosts a repo at Chiba U, the address is: http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git HOWEVER. Railwaycat does still maintain the Homebrew tap and formula for installing Emacs Mac Port Here: https://git…

So what is the benefit compared to the emacs port 'emacs'?

I found a full listing here: https://github.com/railwaycat/emacs-mac-port/blob/master/REA...

Re: Mastering Emacs

#86
post #71
post #67

Earlier quoted context omitted.

How else can you screen/tmux your work? Terminals ftw.

If you're using emacs you can use M-x eshell to open a shell. Combined with tramp (which lets you open remote files via ssh: C-x C-f /ssh:you@otherhost:path/to/file) you can actually avoid using tmux/screen at all. Instead of managing screens in tmux and simultaneously buffers in emacs, you just need the emacs buffers.

What I was imagining is launching Emacs in a tmux session, doing your editing (at work, for example), detaching that session (but not closing it), going home and logging back into your work machine and reattaching that same editing session.

Re: Mastering Emacs

#87
post #50

I haven't read this, but from the contents it seems like you can learn everything there is in the book from the official Emacs GNU documentation: https://www.gnu.org/software/emacs/manual/html_node/emacs/in...

As a long time Emacs user, I would recommend using the real documentation too. Learn how to use the built in info and help, and study some of the elisp.

The author discussed this on reddit the other day. Supposedly the guide helps you get into that workflow.

http://www.reddit.com/r/emacs/comments/36zcny/im_pleased_to_...

Re: Mastering Emacs

#88
post #43
post #17

Earlier quoted context omitted.

No, swap your alt-gr and ctrl.

Put Ctrl on left Alt. And left Alt und right Alt (Alt-Gr). Then you are free to finally map Caps Lock to Escape. After that map left Ctrl such that left Ctrl+E/S/D/F is Up, Left, Down and Right.

I map esc to the key between left shift and Z. It doesn't exist on US keyboards, though. And I put backspace on caps-lock. What I don't understand is putting any kind of simultaneous combo key on caps-lock, since caps-lock + a is not really easy to press. It doesn't help that many keyboards have a bit of a gap between a and caps-lock (to help position the left hand and prevent accidental caps-locking?).

Re: Mastering Emacs

#89

If you're on OSX and want a good Emacs, go to https://github.com/railwaycat/emacs-mac-port and read the installation instructions under the Homebrew section. It follows the official Emacs repo pretty closely, but has useful OSX additions (smooth scrolling, gesture support [font size e.g] and more).

I'm on OS X, but I just installed GNU Emacs from source and run it in a terminal window. Never really understood GUI versions of Emacs -- they seem to defeat the purpose of Emacs.

Re: Mastering Emacs

#90

Earlier quoted context omitted.

That git repo claims to be retired. I get my emacs from here http://emacsformacosx.com

You misunderstand. The repo you're referring to is Railwaycat's mirror of Yamamoto Mitsuharu's codebase. (which previously was only available via ftp and tarballs.) Yamamoto has recently migrated to git and hosts a repo at Chiba U, the address is: http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git HOWEVER. Railwaycat does still maintain the Homebrew tap and formula for installing Emacs Mac Port Here: https://git…

It's easy to misunderstand because it's not clear at all what is and isn't mirrored.
Post reply on HN