|
From: | Jiri Pejchal |
Subject: | Re: How can I do these in Emacs? |
Date: | Sat, 19 Apr 2003 14:39:04 GMT |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Pascal Bourguignon <spam@thalassa.informatimago.com> writes: > > 1. How can I do something like a "o" command in vi with Emacs? I > > always C-e to the end of the line and press RET. Are there any > > faster ways? > > (defun open-line-a-la-vi () > (interactive) > (forward-line) > (open-line (or prefix-arg 1))) > (global-set-key "\C-o" 'open-line-a-la-vi) Thanks! That's cool. What about this: (defun open-line-a-la-vi () (interactive) (forward-line) (open-line (or prefix-arg 1)) (indent-according-to-mode)) ;;and indent too (global-set-key "\C-o" 'open-line-a-la-vi) Jiri Pejchal
[Prev in Thread] | Current Thread | [Next in Thread] |