From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Change .emacs directory in Ubuntu Date: 5 Sep 2013 09:19:41 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1378372815 27956 80.91.229.3 (5 Sep 2013 09:20:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 09:20:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 11:20:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VHVjd-0001Ji-Vg for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 11:20:18 +0200 Original-Received: from localhost ([::1]:57734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHVjd-000390-4T for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 05:20:17 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: individual.net 35cSfSYO3Rq7czWlDmkgjg3MyU3oiWP6x4ElQurQoyJOQiE4DJ Cancel-Lock: sha1:ZF1otNhF2VtXbylSJLa2VzO7c2o= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:200997 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93266 Archived-At: 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)