From: "Juanma Barranquero" <lekktu@gmail.com>
To: abc <arcadiorubiogarcia@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Setting user-emacs-directory
Date: Thu, 13 Nov 2008 01:06:10 +0100 [thread overview]
Message-ID: <f7ccd24b0811121606j2c21439eu500c7ac93f366505@mail.gmail.com> (raw)
In-Reply-To: <1e908a82-ab50-4240-85cd-9092b94a97ab@y29g2000hsf.googlegroups.com>
On Tue, Oct 21, 2008 at 15:08, abc <arcadiorubiogarcia@gmail.com> 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
next prev parent reply other threads:[~2008-11-13 0:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 14:08 Setting user-emacs-directory abc
2008-10-22 0:25 ` Xavier Maillard
[not found] ` <mailman.1754.1224635369.25473.help-gnu-emacs@gnu.org>
2008-10-22 14:26 ` abc
2008-11-12 23:25 ` Xavier Maillard
2008-11-13 0:06 ` Juanma Barranquero [this message]
2008-11-13 23:25 ` Xavier Maillard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0811121606j2c21439eu500c7ac93f366505@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=arcadiorubiogarcia@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.