unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Change .emacs directory in Ubuntu
Date: 5 Sep 2013 09:19:41 GMT	[thread overview]
Message-ID: <slrnl2gj5d.mlo.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: f08309cd-741d-4757-84ce-8371f07eadbf@googlegroups.com

kishore.r.318@gmail.com wrote:
>
> Currently my .emacs file is found in /home So is my .emacs.d folder
> and I suppose some other files like diary, notes etc will be created
> in this folder.

I assume that when you write /home, you actually mean your home
directory, also abbreviated with a tilde in Unix/Linux, right? /home is
an actual directory in a Linux file system, it's *not* your home
directory. (That is a subdirectory of /home, like /home/joost in my
case.)

> I find this really messy and I want all my emacs related
> files(including the .emacs) and folders in a single folder, say
> /home/EmacsHome

Well, normally Emacs should keep everything in ~/.emacs.d, including its
init file, unless it finds a file ~/.emacs. So I'd suggest moving
~/.emacs to ~/.emacs.d/init.el (that's what the file should be called),
then most everything should be kept there.

Of course, Emacs is more than an editor, its basically a Lisp VM, and
programs running in Emacs may decide to put their config files outside
of ~/.emacs.d (at least some do, IME). It's usually possible to
configure them to put their config files in ~/.emacs.d as well, though,
you'll just have to find out how.

> How do I do that in Ubuntu 12.04? In windows I did this by setting an
> environment variable HOME to the path of EmacsHome. But, in Ubuntu,
> the HOME variable will be used for several other programs as well, so
> I dont want to change that.

Looking through the Emacs manual there doesn't seem to be a way to do
that. What you *could* do, is set HOME to a different value just for
Emacs, but I wouldn't recommend that, because it could mess up external
programs that Emacs calls.


-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


  parent reply	other threads:[~2013-09-05  9:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 20:37 Change .emacs directory in Ubuntu kishore.r.318
2013-09-04 22:24 ` Peter Dyballa
2013-09-04 22:45   ` Kishore Rathinavel
2013-09-04 22:58     ` Peter Dyballa
2013-09-04 23:12       ` Kishore Rathinavel
2013-09-05  0:22         ` Peter Dyballa
2013-09-05  1:43           ` Kishore Rathinavel
2013-09-05  8:40             ` Peter Dyballa
2013-09-05 16:34             ` Suvayu Ali
     [not found]           ` <mailman.1329.1378345390.10748.help-gnu-emacs@gnu.org>
2013-09-05  2:47             ` Rustom Mody
2013-09-04 23:35 ` Steven Knight
2013-09-05  0:35 ` Suvayu Ali
     [not found] ` <mailman.1321.1378333498.10748.help-gnu-emacs@gnu.org>
2013-09-05  9:11   ` Joost Kremers
2013-09-05  9:19 ` Joost Kremers [this message]
2013-09-05  9:31   ` Eli Zaretskii
2013-09-05  9:32   ` Peter Dyballa
2013-09-05 16:58     ` Kishore Rathinavel
  -- strict thread matches above, loose matches on Subject: below --
2013-09-05 10:41 Vilibald Wanca

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnl2gj5d.mlo.joostkremers@j.kremers4.news.arnhem.chello.nl \
    --to=joostkremers@yahoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).