From: "Drew Adams" <drew.adams@oracle.com>
To: "'Roy Smith'" <roy@panix.com>, <help-gnu-emacs@gnu.org>
Subject: RE: How to pre-load compile command history?
Date: Wed, 16 Nov 2011 09:54:52 -0800 [thread overview]
Message-ID: <3135048E86744BFC9C3BAFA295F56AED@us.oracle.com> (raw)
In-Reply-To: <1DC1329F-218F-4086-9C0C-3A2A4D56289A@panix.com>
> (global-set-key "\C-cm" 'compile)
> (setq compile-command "cd
> /home/roy/songza/code/radio/api/mobile/test; python test_api.py")
>
> That works fine, but now I've got several different commands
> that I run often. Is there some way to pre-load them into
> the compile history, so I can just do c-c m, then up-arrow
> though the history to pick the one I want?
If option `compilation-read-command' is non-nil then you are prompted with
completion for the compilation command to use. You can set the history variable
`compile-history' ahead of time, so you can then use `M-n', `M-p', `M-s', and
`M-r' to access the commands on your list.
(This is according to what I see in the code in `compile.el'. I don't often use
`compile' myself.)
next prev parent reply other threads:[~2011-11-16 17:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 17:16 How to pre-load compile command history? Roy Smith
2011-11-16 17:54 ` Drew Adams [this message]
2011-11-16 18:36 ` Roy Smith
2011-11-16 19:08 ` Drew Adams
2011-11-17 1:11 ` Roy Smith
2011-11-16 19:58 ` Tom
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=3135048E86744BFC9C3BAFA295F56AED@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=roy@panix.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).