Hacker News new | ask | show | jobs
by pksadiq 3134 days ago
I'm mostly a C developer that spend most of my time inside Emacs.

I use ivy-mode instead of ido-mode, and avy instead of ace-jump. My setup includes yasnippet, flycheck, company, and ggtags mostly.

I have issues using the number keys. So I use a custom vi like mode, but heavily customized: Pressing spacebar results in "_" ("-" in #include), but intelligently. Double space results in "->", ".." results in (|) (where | is the cursor or point) and ",," results in "=".

Pressing spacebar after "(" results in "&", then "*" (also "!" if just after "if" or "while"). And my capslock key is just another control key.

All the examples above are to be assumed without quotes.

1 comments

Just curious.. How do you type-in whitespace?
spacebar results in "_" only when the cursor is immediately after [a-zA-Z0-9_]. And if I really need space, I have Shift-Space. Also, pressing spacebar after a keyword (like char, int, if, else, etc) results in real space.