4 ms·
I've been using emacs for several years. If you saw my init file, you'd think it was kind of funny. It's mostly to change the look from default to a black box.
by dizzystar 6y ago
I've been using emacs for several years. If you saw my init file, you'd think it was kind of funny. It's mostly to change the look from default to a black box.
I do have some functions for connecting to databases, but for the most part, there are no deep customizations.
I also have avy (think that's jump mode in vim), ldo for file browsing, yasnippet (for snippets), multiple-cursors, and some language-specific major and minor modes.
I mainly want to press C-c C-c and get my work done.
------
As a general rule, emacs is pretty easy:
* C = basic
* M = more powerful
* CM = most powerful.
So...
* C-f = move forward one character
* M-f = move forward one word
* CM-f = move forward one bracket
A lot of things are sort of mnemonic:
* f - forward
* b - back
* r - rectangle
* s - search
* r - reverse search
The biggest thing to remember is that "yank" has the opposite meaning in Emacs. In emacs, you can either "kill" (cut), or "copy", then you "yank" to (paste). This is a function of how the Emacs "kill ring" works. This extends to the above:
* C-y - yank the last item
* M-y - scroll back through the backlog of the kill ring.
Everything sort of falls out from this logic. If had to be completely honest with you, I probably use 20% of the total functionality of Emacs. It's a huge system, but I get my work done efficiently and don't sweat that I can't write a bunch of elisp from memory.
- AnonC 6y agoThanks a lot for the simple explanation of the keyboard combinations (and the underlying logic) as well as the part about yanking. As a vi user, that might’ve tripped me up the first few times. But now I know better.
- john4532452 6y agoThanks so much. There are very rare tricks and tips that's comes across ones way which becomes part of a person's habit. This is one of them.