* binding command to key
@ 2003-10-18 19:02 Bob Smith
2003-10-18 19:56 ` roodwriter
0 siblings, 1 reply; 3+ messages in thread
From: Bob Smith @ 2003-10-18 19:02 UTC (permalink / raw)
Hi
how do I bind the compile command to a function key, say F1?
tia
/B
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: binding command to key
2003-10-18 19:02 binding command to key Bob Smith
@ 2003-10-18 19:56 ` roodwriter
2003-10-19 7:45 ` Bob Smith
0 siblings, 1 reply; 3+ messages in thread
From: roodwriter @ 2003-10-18 19:56 UTC (permalink / raw)
Bob Smith wrote:
> Hi
> how do I bind the compile command to a function key, say F1?
> tia
> /B
I'm a writer so I never compile, but the general way to bind a key is with:
M-x global-set-key
Follow the prompts.
Note that this only works for the current session, that is, when you shut
down Emacs it disappears. In the .gnu-emacs file there's a section on
keybindings. Just go to it and replace the current command with what you
like, save the file, then exit and start up Emacs. Then it'll work.
In mine the F1 key, which I think is at the default, is:
(global-set-key [f1] 'help-for-help) ; `Help'
Replace the help-for-help
--Rod
--
Author of "Linux for Non-Geeks--Clear-eyed Answered for Practical Consumers"
and "Boring Stories from Uncle Rod." Both are available at
http://www.rodwriterpublishing.com/index.html
To reply by e-mail, take the extra "o" out of the name.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: binding command to key
2003-10-18 19:56 ` roodwriter
@ 2003-10-19 7:45 ` Bob Smith
0 siblings, 0 replies; 3+ messages in thread
From: Bob Smith @ 2003-10-19 7:45 UTC (permalink / raw)
Thanks got it working, have a nice day
/B
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-19 7:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-18 19:02 binding command to key Bob Smith
2003-10-18 19:56 ` roodwriter
2003-10-19 7:45 ` Bob Smith
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).