From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Setting user-emacs-directory Date: Thu, 13 Nov 2008 01:06:10 +0100 Message-ID: References: <1e908a82-ab50-4240-85cd-9092b94a97ab@y29g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226534911 28352 80.91.229.12 (13 Nov 2008 00:08:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 00:08:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: abc Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 01:09:31 2008 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 1L0Pm7-0004dH-3I for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 01:09:31 +0100 Original-Received: from localhost ([127.0.0.1]:54415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0Pkz-0007gM-6U for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2008 19:08:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0Piu-00078O-LQ for help-gnu-emacs@gnu.org; Wed, 12 Nov 2008 19:06:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0Piu-000786-3u for help-gnu-emacs@gnu.org; Wed, 12 Nov 2008 19:06:12 -0500 Original-Received: from [199.232.76.173] (port=43321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0Piu-000783-0l for help-gnu-emacs@gnu.org; Wed, 12 Nov 2008 19:06:12 -0500 Original-Received: from yx-out-1718.google.com ([74.125.44.154]:9222) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0Pit-0006rB-Il for help-gnu-emacs@gnu.org; Wed, 12 Nov 2008 19:06:11 -0500 Original-Received: by yx-out-1718.google.com with SMTP id 34so322693yxf.66 for ; Wed, 12 Nov 2008 16:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vhI9d7ZkPvYlPgciEmU20QqROqP0AA4oWVeOx6bUziQ=; b=pdurjDrGbEctWrs+Tmp2XlAjsDbp4/j+326+QmCCyUW92gbHms8WcMTyDDFo3NTzja IVM/1D4ksJYq3j/OdiqF+nXiCfA9pq+ZA6UOIaPXYNGRMnRxWixo5Og/oBiYcITWbZPr CO6fA+NOLlE9cdBnMZeQQdcLGESPz4ylpnDBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QRy+fWxTIVUBxm5biMXK05GdSoKmdJg1w4aOG82+259lGGXrFTthni1n1dY9AwL1om DsAnbN+O4jrUWpXUsqREZe01VsyMEUBD3tDOwtnFh9wrdqXMlXl6doO8g56dCysoWlKx fs9cfqMff+fV4hFxai0XCdmUyqB0EyBJVTGeg= Original-Received: by 10.100.143.12 with SMTP id q12mr4357321and.22.1226534770630; Wed, 12 Nov 2008 16:06:10 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Wed, 12 Nov 2008 16:06:10 -0800 (PST) In-Reply-To: <1e908a82-ab50-4240-85cd-9092b94a97ab@y29g2000hsf.googlegroups.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59714 Archived-At: On Tue, Oct 21, 2008 at 15:08, abc wrote: > I'd like change the user directory (usually ~/.emacs.d) and the init > file placing them inside ~/Library/Preferences/Emacs and ~/Library/ > Preferences/Emacs/Preferences.el, respectively. Currently I'm > achieving this by using symbolic links. > > I'd like to know if there's a cleaner way to do this other than > editing Emacs scripts (subr.el), e.g. by setting some environment > variables. Setting HOME to ~/Library/Preferences/Emacs for the Emacs process you'll force it to use that directory, but you cannot change the name of the init file, which is the first found from .emacs.elc, .emacs.el, .emacs, .emacs.d/init.elc. .emacs.d/init.el. > I've tried to set the user-emacs-directory from my init > file, but Emacs ignores me, and still creates auto-save-list inside > ~/.emacs.d. Does it work adding this at the start of your .emacs? (setq user-emacs-directory "~/Library/Preferences/Emacs/" auto-save-list-file-prefix (concat user-emacs-directory "auto-save-list/.saves-")) Juanma