6

Excerpt from GNU Emacs manual:

C-u alone has the special meaning of “four times”: 
it multiplies the argument for the next command by four. 
C-u C-u multiplies it by sixteen.
Thus, C-u C-u C-f moves forward sixteen characters.

Is there a way to get this multiplication by sixteen when rebinding universal-argument to a different key? I did the following:

(global-set-key (kbd "C-i") 'universal-argument)

But when I press C-i C-i a only 4 copies of a are inserted, not 16 (if I rebind universal-argument back to C-u then I get 16 copies as advertised in the manual).

1 Answer 1

6

Add at least one additional definition:

(global-set-key (kbd "C-i") 'universal-argument)

(define-key universal-argument-map (kbd "C-i") 'universal-argument-more)

See additional universal-... definitions in both bindings.el and simple.el that may be rebound if so desired.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.