Le 12 avr 2005, Rui Tiago Matos vraute : > One vim feature which is really handy (and my vim user house mate is > always teasing me about :-) is the single repeat command aka "dot" or > "."[1] > > So is there anyway to have anything like it in emacs?
You can prefix a command, or a single key press with the universal argument C-u : ,----[ C-h k C-u ] | C-u runs the command universal-argument | which is an interactive compiled Lisp function in `simple'. | It is bound to C-u. | (universal-argument) | | Begin a numeric argument for the following command. | Digits or minus sign following C-u make up the numeric argument. | C-u following the digits or minus sign ends the argument. | C-u without digits or minus sign provides 4 as argument. | Repeating C-u without digits or minus sign | multiplies the argument by 4 each time. | For some commands, just C-u by itself serves as a flag | which is different in effect from any particular numeric argument. | These commands include C-@ and M-x start-kbd-macro. | | [back] `---- For example : C-u 25 . gives 25 dots : ......................... HTH. -- Sébastien Kirche _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs