help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the factor used in universal arugment


From: Emanuel Berg
Subject: Re: Changing the factor used in universal arugment
Date: Sat, 24 Jun 2017 19:49:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Narendra Joshi wrote:

> How can I change the factor by which
> universal argument changes on repetition from
> 4 to say 2? For say having more
> granularity there.

1. Use the source, Luke! First do `C-h k C-u'
   to find out what function is bound to the
   key and where it is defined.

2. Open the file:

       /usr/share/emacs/24.4/lisp/simple.el.gz

3. Copy these functions to some other file:

       universal-argument
       universal-argument-more

4. Change the 4s into 2s. [1]

5. Evaluate the functions (or entire new file)
   to have them overload the
   previous definitions.

6. Don't do it, Jeff!



[1] Hey, same data hard-coded twice - not good!

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]