From: "roodwriter@core.com" <roodwriter@core.com>
Subject: Re: binding command to key
Date: Sat, 18 Oct 2003 15:56:56 -0400 [thread overview]
Message-ID: <vp36m3kimv2831@corp.supernews.com> (raw)
In-Reply-To: Dhgkb.92$ks2.85@reader1.news.jippii.net
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.
next prev parent reply other threads:[~2003-10-18 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-18 19:02 binding command to key Bob Smith
2003-10-18 19:56 ` roodwriter [this message]
2003-10-19 7:45 ` Bob Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vp36m3kimv2831@corp.supernews.com \
--to=roodwriter@core.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).