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

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

Re: introduction to lisp


From: Emanuel Berg
Subject: Re: introduction to lisp
Date: Tue, 20 Jun 2017 06:59:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Kaushal Modi wrote:

> Example: - How do I bind F1? - Do C-h k F1..
> Realize that emacs shows that as <f1> -
> Simply wrap that with (kbd "...") and you
> have (kbd "<f1>") - Put that in the
> global-set-key or define-key form.

But that evaluates to [f1], so then why not

    (global-set-key [f1]
      (lambda () (interactive) (message "Formula 1")) )

?

Actually the only case I have against `kbd' is
that it is more bulky and longer to type...

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




reply via email to

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