Live data from Hacker News

Mastering Emacs

masteringemacs.org

61–70 of 102 posts

Re: Mastering Emacs

#61

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).

That git repo claims to be retired.

I get my emacs from here http://emacsformacosx.com

Re: Mastering Emacs

#62
post #60
post #54

Earlier quoted context omitted.

ctrl-k ctrl-y ?

Not quite the same. For instance, to duplicate a line in Emacs you have to go to the beginning of the line, kill it and then yank twice, and it doesn't even work always, particularly at the end of a buffer. In vi, it's just yyp. No corner cases.

I've been using emacs for a long time. When I duplicate a line I don't even know that I'm following the steps you mention, I just do it on autopilot.

What I like most about emacs though is that I rarely have to do repetitive tasks because I can write a bit of lisp code to do them instead.

Re: Mastering Emacs

#63
post #40
post #31

I hadn't tried Magit before now, but on the suggestion of this blog I'm giving it a look through. Looks good so far. I also enjoy the style the blog is using: anyone know what backend the author is using?

One thing I hated about magit was that I couldn't stage multiple files with a region or similar. I'm currently on my phone for the rest of the evening so I won't have chance to check - if you notice this has arrived in your testing, do let me know! I usually use shell emulator + company for dir/file autocomplete. This is the fastest I've got to staging individuals files or dirs, especially with projects that have a d…

In magit-status-mode I'm able to stage files based on the region.

I can also expand them and highlight multiple chunks to stage just those chunks.

The are only two major things I don't know how to do with the current stable version of Magit (1.4). One is starting an interactive rebase. It can take you through the commits and let you edit the buffer, but I haven't figured out if it's possible to start an interactive rebase without using the "!" command line.

The other thing is checking out files in order to revert them, I'm sure there's a way but using "!" and pasting the file names in still seems fastest.

I've also been wondering if it's possible to write a command to manage the `--skip-worktree` status of files, showing which are currently skipped in magit-status-mode. That would be a useful thing for me to have.

Re: Mastering Emacs

#64
post #33
post #24

Earlier quoted context omitted.

Intuitiveness is subjective. Take cursor movement for example. I understand now h,j,k,l is a remnant from historic keyboards, but when I started learning vim, I couldn't fathom why 'h' moves a cursor to left and 'l' to the right, though I got used to it eventually. The emacs 'C-f' for forward and 'C-b' for backward were definitely more intuitive. Of course, depending on the mode, some emacs commands can be cryptic an…

hjkl is QWERTY-centric, and would be totally nonsensical to a user of a different keyboard layout, like Dvorak. C-f, C-b are English-centric, and would be totally nonsensical to a user of a different language. Intuitive is hard.

Hmm, maybe someone should invent keys with arrows on them! :P

Re: Mastering Emacs

#65
post #40
post #31

I hadn't tried Magit before now, but on the suggestion of this blog I'm giving it a look through. Looks good so far. I also enjoy the style the blog is using: anyone know what backend the author is using?

One thing I hated about magit was that I couldn't stage multiple files with a region or similar. I'm currently on my phone for the rest of the evening so I won't have chance to check - if you notice this has arrived in your testing, do let me know! I usually use shell emulator + company for dir/file autocomplete. This is the fastest I've got to staging individuals files or dirs, especially with projects that have a d…

I wrote this gist that adds the ability to add multiple files from dired to git

https://gist.github.com/justinhj/5945047

Re: Mastering Emacs

#67
post #66

Is it weird that I wish somebody would make a terminal-ized version of newer editors like Atom/ST/Brackets?

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

Re: Mastering Emacs

#68

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...

Although I haven't read this book, I read its ToC. Apparently it seeks to introduce you to the Emacs way of doing things. And guess what? Near the end, it emphasizes how to use Emacs' self-documention: https://www.masteringemacs.org/book/look-inside/table-of-con...

I'm embarrassed to say how long I used Emacs knowing about C-h f -- but not noticing and using C-h i to read the full documentation from inside Emacs. I wish I'd appreciated that from the start.

At this point I've read the full Info doc at least once through, some sections multiple times. It's impressively good, especially for getting a crisper understanding of topics you only sort of understand. It's one of Emacs best features.

But I can totally see the value of a good introduction book, and wish I'd had one when I was starting out. So although I don't know how good this book is, I don't think a book is pointless.

Re: Mastering Emacs

#69

I really like this blog, it's great. Very engaging. Would recommend subscribing to it! ps thanks for the downvote HN - classy :-)

I didn't downvote your post, but I can see why others might feel that it doesn't contribute to the conversation because basically the only possible responses are "Me too" and "You are wrong". Adding the complaint about the downvote would ordinarily get a downvote from me, but I'd already used my vote in search of justice. Anyway, consider the downvotes editorial feedback and perhaps taking advantage of the opportunit…

This sort of "empty praise" is also commonly encountered in blog comments as spam, because it is so easily generated. I suppose others here have experienced the same.

Re: Mastering Emacs

#70
post #60
post #54

Earlier quoted context omitted.

ctrl-k ctrl-y ?

Not quite the same. For instance, to duplicate a line in Emacs you have to go to the beginning of the line, kill it and then yank twice, and it doesn't even work always, particularly at the end of a buffer. In vi, it's just yyp. No corner cases.

Or you can go to the beginning of the line, press Control-space (set mark), press Control-e (end of line), then Meta-W (copy), and Control-y (paste).
Post reply on HN