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

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

Re: emacs calculator


From: Sean Richards
Subject: Re: emacs calculator
Date: Sun, 16 Jan 2005 15:46:52 +1300
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

"B.T. Raven" <ecmn@cpinternet.com> writes:

> I added the following lines to my .emacs (i386-mingw: 21.3.1):
>
> (autoload 'calculator "calculator"
>     "Run the Emacs calculator." t)
>   (global-set-key [(control return)] 'calculator)
>
> After saving this, exiting, restarting, still no go. C-h k C-return is
> shown as undefined.
>
> Then I replaced the last line with:
> (define-key global-map [(control return)] 'calculator)
>
> Same result. What I am I doing wrong?

I prefer a different notation for emacs key bindings. Try this way

(global-set-key (kbd "C-<return>") 'calculator)

Sean

-- 
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.

reply via email to

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