Live data from Hacker News

Bad Emacs Advice

masteringemacs.org

121–130 of 148 posts

Re: Bad Emacs Advice

#121

Earlier quoted context omitted.

> In over twenty years of Emacs usage, I have never once used C-t on purpose. This is funny to me because, while I'm not an Emacs user, I'm a Mac user who's gotten used to the tiny subset of Emacs keybindings built into Cocoa text fields, and I use C-t fairly frequently! Apparently you do not make character transposition errors as often as I do.

I just wish M-t worked in the Cocoa text fields, I somehow use that more than C-t. And M-d, too—I accidentally type "∂" a lot. :-(

You can enhance the set of keybindings by placing this file in ~/Library/KeyBindings, which will solve the M-d problem (though not the M-t one):

https://github.com/ppwwyyxx/dotfiles/blob/master/macOS/Libra...

It's a life saver.

Re: Bad Emacs Advice

#122

Just to add: the built-in "Introduction to Programming in Emacs Lisp" is also really really great. I have been using emacs for a while, with one framework or another, but always hesitated actually learning lisp. I was too focused on learning the kinds of languages and systems that might get me a job, and it felt like too big of a venture in learning a whole language just for my development environment. Now, I have a…

> ... and have been enlightened by SICP and lispey languages, Fun anecdote: I've got my copy of SICP signed by both authors for Sussman invited me to have tea in his office and when I arrived the next day, by sheer chance, Abelson was there too! They joked that had I been there 30 minutes early Sussman's wife, who proofread the book, would have signed it too! I've got a cool pic taken at that moment: me standing alon…

Wow so cool! I have been working through it with just the HTML version, but recently resolved to get the physical book, its just one those I gotta have.. Then, one day when I have the money, I will get the full volumes of The Art of Computer Programming by Knuth.

Re: Bad Emacs Advice

#123
post #91

Earlier quoted context omitted.

It should on a standard install. If you have things remapped, try M-x info, then search for "Emacs List Intro" but it should be near the top anyway.

M-x info, C-s lisp... nothing.

I suspect you have an idiosyncratic install.

Re: Bad Emacs Advice

#124
post #120
post #81

Earlier quoted context omitted.

It's easy to poke fun, but DOP isn't just about region and it does matter, at least for many things. I don't know that "you can't call it X" is the right approach, but there should be some really clear to consumers way of saying "X was made to a particular standard" vs "all bets are off with Y" - then let them decide.

I'm not the one poking fun, my comment was straightforward. I'm French, we invented this legal device, I know how it works and why it exists (and I think it's got every right to).

My mistake, I thought I was replying to parent.

Re: Bad Emacs Advice

#125

Earlier quoted context omitted.

Don't use the quotes for the phrase, just type it verbatim. If that still doesn't work then either the info page isn't installed (weird) or something else is up. You can also, from the first info page at C-h i, type "C-s emacs lisp intro" which should bring you to it. And again, if it's not there then something is wonky with your install.

I have a totally standard Emacs install, but it's not there. C-h i and searching with C-s for "lisp" finds nothing either.

I found it on my Mac in the menu bar. Like the one at the top of the screen next to the Apple logo. Clicking with my mouse: Help > More Manuals > Introduction to Emacs Lisp.

I assume in Windows/Linux this would actually be attached to the window frame at the top.

Re: Bad Emacs Advice

#126

Earlier quoted context omitted.

> ... and have been enlightened by SICP and lispey languages, Fun anecdote: I've got my copy of SICP signed by both authors for Sussman invited me to have tea in his office and when I arrived the next day, by sheer chance, Abelson was there too! They joked that had I been there 30 minutes early Sussman's wife, who proofread the book, would have signed it too! I've got a cool pic taken at that moment: me standing alon…

Wow so cool! I have been working through it with just the HTML version, but recently resolved to get the physical book, its just one those I gotta have.. Then, one day when I have the money, I will get the full volumes of The Art of Computer Programming by Knuth.

I just printed out the pdf version of the book. I found a shop that would bind it for me and print it double-sided.

Re: Bad Emacs Advice

#127

Maybe it's me, but starting out with Emacs the previous month, I tried using Doom Emacs the other week, and the number of packages it was being used frightened me. Building your own init.el is much much better, because you know your Emacs in and out, and dont have random keybindings triggering stuff. Maybe I'll never get the popularity of Doom

If you have spent years writing your own config, you appreciate all the things doom brings to the table. I know I'd never end up writing such a good system from the ground up.

Re: Bad Emacs Advice

#128

Earlier quoted context omitted.

> ... and have been enlightened by SICP and lispey languages, Fun anecdote: I've got my copy of SICP signed by both authors for Sussman invited me to have tea in his office and when I arrived the next day, by sheer chance, Abelson was there too! They joked that had I been there 30 minutes early Sussman's wife, who proofread the book, would have signed it too! I've got a cool pic taken at that moment: me standing alon…

Wow so cool! I have been working through it with just the HTML version, but recently resolved to get the physical book, its just one those I gotta have.. Then, one day when I have the money, I will get the full volumes of The Art of Computer Programming by Knuth.

I wonder how much he could raise for charity by selling autographed copies. The man is a legend.

Re: Bad Emacs Advice

#129

Earlier quoted context omitted.

> In over twenty years of Emacs usage, I have never once used C-t on purpose. This is funny to me because, while I'm not an Emacs user, I'm a Mac user who's gotten used to the tiny subset of Emacs keybindings built into Cocoa text fields, and I use C-t fairly frequently! Apparently you do not make character transposition errors as often as I do.

I just wish M-t worked in the Cocoa text fields, I somehow use that more than C-t. And M-d, too—I accidentally type "∂" a lot. :-(

I forget about the "control = by character, meta/escape = by word" idea because of that. (Maybe "smaller unit vs. bigger unit" is more accurate? I dunno.)

I don't know what I'd do with that if I were actually an Emacs user, though, since I use the Option key for typing certain characters a fair amount. Although I'm sure I could remap Emacs meta to virtually anything else, because Emacs.

Re: Bad Emacs Advice

#130

Earlier quoted context omitted.

I just wish M-t worked in the Cocoa text fields, I somehow use that more than C-t. And M-d, too—I accidentally type "∂" a lot. :-(

You can enhance the set of keybindings by placing this file in ~/Library/KeyBindings, which will solve the M-d problem (though not the M-t one): https://github.com/ppwwyyxx/dotfiles/blob/master/macOS/Libra... It's a life saver.

Oooo, thank you! Knowing that existed led me to https://developer.apple.com/library/archive/documentation/Co... and https://developer.apple.com/documentation/appkit/nsstandardk...

This leads me to believe that this will work:

    "~t"      = "transposeWords:";               /* M-t */
Edit: Sadly, `transposeWords:` doesn't work, despite showing up in Apple's docs—it just beeps when I try to use it.
Post reply on HN