all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing the factor used in universal arugment
Date: Sat, 24 Jun 2017 19:49:50 +0200	[thread overview]
Message-ID: <86lgohs2bl.fsf@zoho.com> (raw)
In-Reply-To: 87injle87j.fsf@vicarie

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




      parent reply	other threads:[~2017-06-24 17:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-24 15:06 Changing the factor used in universal arugment Narendra Joshi
2017-06-24 16:22 ` John Ankarström
2017-06-24 18:39   ` Emanuel Berg
2017-06-24 16:26 ` Kaushal Modi
2017-06-24 18:47   ` Emanuel Berg
2017-06-24 17:42 ` Udyant Wig
2017-06-24 23:56   ` John Ankarström
2017-06-25 14:37     ` Emanuel Berg
2017-06-25 17:41       ` John Ankarström
2017-06-25 18:01         ` Emanuel Berg
2017-06-25 20:08           ` Stefan Monnier
2017-06-25 20:29             ` Emanuel Berg
2017-06-25  5:28   ` Narendra Joshi
2017-06-24 17:49 ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86lgohs2bl.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.