From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roy Smith Newsgroups: gmane.emacs.help Subject: Re: Making M-X compile cache compile command across sessions? Date: Sun, 29 Jan 2006 08:56:48 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1138552398 13161 80.91.229.6 (29 Jan 2006 16:33:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 16:33:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 17:33:11 2006 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1F3FUF-00080l-00 for ; Sun, 29 Jan 2006 17:33:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3FGs-000760-PI for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 11:19:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!bigboote.WPI.EDU!newsfeed-00.mathworks.com!panix!roy Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: p67-13.acedsl.com Original-X-Trace: reader2.panix.com 1138543008 300 66.114.67.13 (29 Jan 2006 13:56:48 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 29 Jan 2006 13:56:48 +0000 (UTC) User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) Original-Xref: shelby.stanford.edu gnu.emacs.help:137280 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32901 Archived-At: In article , Ian Zimmerman wrote: > Roy> It's a pain to type all this every time I start up a new emacs > Roy> session. I know I can setq compile-command in my .emacs file, but > Roy> that's a little too static. It would be cool if emacs wrote the > Roy> last compile command I used out to a file so it has a persistant > Roy> cache across emacs sessions. Any way to make it do that? > > Use the desktop module and > > (add-to-list 'desktop-globals-to-save '(compile-history . 20)) > > or something similar. Wow, I'd never heard of desktop before. Sounds like exactly what I'm looking for, thanks!