From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: abc Newsgroups: gmane.emacs.help Subject: Re: Setting user-emacs-directory Date: Wed, 22 Oct 2008 07:26:30 -0700 (PDT) Organization: http://groups.google.com 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224686525 25847 80.91.229.12 (22 Oct 2008 14:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 14:42:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 16:43:05 2008 connect(): Connection refused 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 1KsevG-0004pV-LJ for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 16:42:55 +0200 Original-Received: from localhost ([127.0.0.1]:35618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KseuA-0007Nh-A1 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 10:41:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h60g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 80.167.171.121 Original-X-Trace: posting.google.com 1224685590 9452 127.0.0.1 (22 Oct 2008 14:26:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 22 Oct 2008 14:26:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h60g2000hsg.googlegroups.com; posting-host=80.167.171.121; posting-account=x0DxoAoAAAAiEcu3CQhdtzJIGAmMw1Ns User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; es-es) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163699 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:59039 Archived-At: Thanks for your reply. I had already tried setting user-init-file and user-emacs-directory from a .emacs in $HOME. However, Emacs insists on writing stuff in my .emacs.d directory. In particular it creates it and puts auto-save-list inside. Any ideas? - Arcadio On 22 oct, 02:25, Xavier Maillard wrote: > Hi, > > =A0 =A0I'd like change the user directory (usually ~/.emacs.d) and the in= it > =A0 =A0file placing them inside ~/Library/Preferences/Emacs and ~/Library= / > =A0 =A0Preferences/Emacs/Preferences.el, respectively. Currently I'm > =A0 =A0achieving this by using symbolic links. > > I have set up a minimal .emacs (in my $HOME directory) which is > in charge of this (see below). > > (setq user-init-file "blah blah") > (setq user-emacs-directory "my emacs.d directory") > (add-to-list 'load-path .....) =A0;; long list of directories here =A0 > (require 'xma-autoloads "/home/xma/usr/share/emacs/autoloads") > (require 'slime-autoloads) > (load user-init-file) > > Hope that'll help. > > =A0 =A0 =A0 =A0 Xavier > --http://www.gnu.orghttp://www.april.orghttp://www.lolica.org