On Thu, Jun 9, 2011 at 11:08, Kenneth Gonsalves <[email protected]> wrote:
> > (global-set-key (kbd "C-u") ctl-x-map)
> >
> > but this also does not work. Any clues will be appreciated.
> >
> clarification: I simply put the above lines in .emacs. I have a feeling
> that this is not enough - it needs more code to get it to work - can
> someone give me a clue here please.

(global-set-key (kbd "C-u") (lookup-key global-map (kbd "C-x")))

Seemed to have worked.  I looked this up here:
http://www.emacswiki.org/emacs/PrefixKey

Just in this case this helps you, (or someone else), the thing was
knowing that "C-x" is a prefix key. Trying out commands in the
*scratch* buffer.  You hit C-j and it will execute it immediately, so
you don't have to update .emacs and restart.  (It will still need to
go into .emacs if you want the change to persist.) ((Also, M-: allows
you to run expressions in Emacs)), and just in case you haven't
already run into these: "C-h f" to lookup help on functions, "C-h k"
to lookup what a keybinding does. "Emacs is the extensible,
customizable, **self-documenting** real-time display editor."

--
http://about.me/rosh
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to