single key to increment the number in emacs
What is the procedure to increment the number under the cursor ?
12 Which key i have to press to make this 12 to become 13. I know the method of keeping the number in register and incrementing, http://www.gnu.org/software/emacs/ma...egNumbers.html . But am looking for a single key to increment the number under cursor. Can anybody help me ? |
I'm afraid you'll have to develop your own lisp foo, and
magically bind it to a single key; there's no such built-in function in Emacs ... Cheers, Tink |
The page http://www.emacswiki.org/emacs/IncrementNumber currently contains two functions that can do what you want.
Copy one of the functions and the key definition to your emacs init file (usually ~/.emacs). |
All times are GMT -5. The time now is 05:17 AM. |