[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making M-X compile cache compile command across sessions?
From: |
Berthold Höllmann |
Subject: |
Re: Making M-X compile cache compile command across sessions? |
Date: |
Sun, 29 Jan 2006 19:30:41 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
roy@panix.com (Roy Smith) writes:
> I'm working in a system which has longish compile commands, for
> example, "cd /work/smithr/sandbox/B-IC-6-2/smarts/clsapi; gmake
> BV=SUFFIX=V65".
>
> It's a pain to type all this every time I start up a new emacs
> session. I know I can setq compile-command in my .emacs file, but
> that's a little too static. It would be cool if emacs wrote the last
> compile command I used out to a file so it has a persistant cache
> across emacs sessions. Any way to make it do that?
>
> I'm using GNU Emacs 21.3.1.
I usually solve this via file variables. Usually you call this make
command when editin specific files. Let the files end with
;;; Local Variables: ***
;;; compile-command: "cd /work/smithr/sandbox/B-IC-6-2/smarts/clsapi; gmake
BV=SUFFIX=V65" ***
;;; End: ***
and M-x compile provides you with the wanted default.
--
berthold@xn--hllmanns-n4a.de / <http://höllmanns.de/>
bhoel@web.de / <http://starship.python.net/crew/bhoel/>