2 ms·
I'm still updating it. If you have any insanely useful Emacs commands that a new user should know, let me know and I'll try to squeeze them in.
by pchristensen 19y ago
I'm still updating it. If you have any insanely useful Emacs commands that a new user should know, let me know and I'll try to squeeze them in.
- yters 19y agoDo SLIME users have much need for keyboard macros? I find them very useful.
- dpapathanasiou 19y agoC-M-u-q is one I use a lot: it auto-indents code (useful after you've made changes to a function or macro definition).
- gruseom 19y agoThis doesn't seem to work for me. Could you mention the name of the command? How does it differ from C-M-\ ?
- dpapathanasiou 19y agoC-M-\ auto-indents the entire buffer, but C-M-u-q works just inside the function or macro you're in when you type the command (it does nothing outside a code block). Emacs help actually defines these as two separate commands (C-M-u is "backward-up-list", C-M-q is "indent-sexp"), but I find that I can just hold down C-M, and then type "u", "q" in succession for the same effect.
- gruseom 19y agoGot it. Thanks! There's so much in Emacs/Slime that I don't know. I find my fingers can only absorb so much at a time :)
- youngnh 19y agoC-M-\ actually only indents the 'region', which is the text between the point (your cursor) and the mark (C-Space). The neat thing about this is that yank (C-y) automatically sets the point and the mark at opposite sides of the yanked text. After copying an expression written in the slime repl to a buffer, C-M-\ works without having to move your cursor to the beginning of the expression.
- dpapathanasiou 19y agoThanks for that clarification. Actually, I don't use C-M-\ much, since I prefer to work in individual blocks and C-M-u-q does that nicely, without my worrying where I last set the mark.
- cstejerean 19y agoBest cheat sheet I've seen so far. I really like the clean design and the ability to squeeze a lot of shortcuts in there.
- pchristensen 19y agoThanks! I spent about as much time in excel tweaking borders, margins, underlines, column width, spacers, etc and then getting it to fit on one page as I did compiling the list to begin with! I just got tired of so many crappy cheat sheets with ~20-30 commands in one column that didn't even give you enough to operate. Plus they were all ugly. Now there's one that's not :)