From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: Using only one emacs session Date: Fri, 15 May 2009 09:38:34 -0400 Message-ID: <44ws8ih4f9.fsf@be-well.ilk.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242394753 14611 80.91.229.12 (15 May 2009 13:39:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2009 13:39:13 +0000 (UTC) To: Francis Moreau , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 15 15:39:06 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M4xcv-00084T-Nb for geh-help-gnu-emacs@m.gmane.org; Fri, 15 May 2009 15:39:06 +0200 Original-Received: from localhost ([127.0.0.1]:56373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4xcu-00040b-Ow for geh-help-gnu-emacs@m.gmane.org; Fri, 15 May 2009 09:39:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4xca-0003zq-0k for help-gnu-emacs@gnu.org; Fri, 15 May 2009 09:38:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4xcV-0003yt-7H for help-gnu-emacs@gnu.org; Fri, 15 May 2009 09:38:43 -0400 Original-Received: from [199.232.76.173] (port=42290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4xcV-0003yq-2z for help-gnu-emacs@gnu.org; Fri, 15 May 2009 09:38:39 -0400 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]:48005) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M4xcU-0008Iv-ET for help-gnu-emacs@gnu.org; Fri, 15 May 2009 09:38:38 -0400 Original-Received: (qmail 23124 invoked from network); 15 May 2009 13:38:35 -0000 Original-Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 May 2009 13:38:35 -0000 Original-Received: by be-well.ilk.org (Postfix, from userid 1147) id 95F365084A; Fri, 15 May 2009 09:38:34 -0400 (EDT) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:64458 Archived-At: Peter Dyballa writes: > Am 15.05.2009 um 13:04 schrieb Francis Moreau: > >> I have a couple of emacs processes, each of them dedicated for a >> specific task: for example, emacs #1 is used to work on project #1, >> emacs #2 for project #2, emacs #3 used for email, irc... > > > One Emacs with session and desktop loaded will remember a lot of > different compile and other commands ... That will let you get the settings from the last time you set things up, but it begs the question, which is having those settings co-exist in the same session with other settings for other work. The way to do the latter is to make the settings buffer-local. A good method is to do this in a mode hook; you can even have the mode hook look at the path and set the build command accordingly.