unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* local-set-key and [f1]
@ 2003-08-22 19:29 vose
  2003-08-22 19:48 ` vose
  0 siblings, 1 reply; 2+ messages in thread
From: vose @ 2003-08-22 19:29 UTC (permalink / raw)


I can get function key f5 to do something useful:

(add-hook 'tex-mode-hook
    (function (lambda ()
              (local-set-key (quote [f5]) "\\begin{eqnarray*}"))))

but every attempt to get function key f1 to behave likewise fails.

Liberal sprinkling of things like

(global-set-key [f1] nil)

or

(global-unset-key [f1])

are no help.  What is the magic required??  Does anyone have an
example which works for f1 ??

Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: local-set-key and [f1]
  2003-08-22 19:29 local-set-key and [f1] vose
@ 2003-08-22 19:48 ` vose
  0 siblings, 0 replies; 2+ messages in thread
From: vose @ 2003-08-22 19:48 UTC (permalink / raw)


vose wrote:
> I can get function key f5 to do something useful:
> 
> (add-hook 'tex-mode-hook
>    (function (lambda ()
>              (local-set-key (quote [f5]) "\\begin{eqnarray*}"))))
> 
> but every attempt to get function key f1 to behave likewise fails.
> 
> Liberal sprinkling of things like
> 
> (global-set-key [f1] nil)
> 
> or
> 
> (global-unset-key [f1])
> 
> are no help.  What is the magic required??  Does anyone have an
> example which works for f1 ??
> 
> Michael
> 

Ahh ... no problem any more... I was attempting to use f1
as the prefix of a vector and the suffix of that vector was
missing the syntactic element "?".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-22 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-22 19:29 local-set-key and [f1] vose
2003-08-22 19:48 ` vose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).