|
From: Eduardo C. <way...@gm...> - 2008-06-29 23:51:47
|
Alex wrote: > This is something that bugs me too. Four keystrokes is an especially high > cost for very short strings. What if we had an alternative syntax for > strings that don't contain spaces? Something like 'foo would be synonymous > with "foo", but would save three keystrokes. Hey Alex! A nice trick is to rebind the ' key to print ". Then you can make the shifted version print '. To day I was experimenting with something similar for the ':'. It's annoying that it's shifted and is used pretty often; the beginning of a word. So I programmed Emacs: If I press the ';' key and I'm at the beginning of a line, it prints ':'. I also had a fancier variant that Slava inspired. Instead of simply inserting ':', it inserts the whole word template: : ( -- ) ; leaving the cursor where the word name will go. Ed |