[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pre-load compile command history?
From: |
Tom |
Subject: |
Re: How to pre-load compile command history? |
Date: |
Wed, 16 Nov 2011 19:58:46 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Roy Smith <roy <at> panix.com> writes:
>
> I'm running GNU Emacs 23.1.1. In my init.el file, I set my default compile
command:
>
> (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?
>
The simplest solution is to use savehist mode to save and restore minibuffer
histories. This is really useful in case of other history prompts too.
http://www.emacswiki.org/emacs/SaveHist