Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-10-2013, 11:20 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Unhappy Emacs custom init file

Hi! I want to know if it's possibly to have multiple .emacs files (i.e. .emacs.full, .emacs.clean, etc.) for different "profiles". I use Emacs for programming, with ECB and alot of modes, but I use Emacs too for writting and for default command line Editor. I don't want to load ECB every time I want to do a git commit, or I want to write something for my blog.

I tried this:

emacs -q -l "/home/bizancio/.emacs.full"

But the initialization hooks are not executed. I know I have the -u option, but I want to specify the .emacs path (I don't have a "full" user, or a "writter" user).

I know I could do this making a really ugly hack with symbolic links and command line scripts, but I would like a simpler solution.
Old 02-11-2013, 09:12 AM   #2
Registered: Aug 2008
Distribution: Debian
Posts: 517

Rep: Reputation: 228Reputation: 228Reputation: 228
Have you tried that command without -q switch?

However, you should take a look at Emacs server since with it you can have one Emacs instance running all the time and do all editing in it including writing git commit message (it can run in the terminal if you want).
Old 02-11-2013, 10:33 AM   #3
LQ Newbie
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi mina86, thanks for your answer!

Without -q switch .emacs file is executed. Is not what I want. I didn't use Emacs server yet.. I probably should take a look at that.

I finally added a custom command line param (--profile) to my .emacs file. Depending on that param's value I'm loading some modules or not, using command-switch-alist.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
emacs::PDE .emacs file question pythonsyntax Linux - Software 1 06-08-2012 01:29 PM
Problems with logging the output of a custom daemon with a custom init script d1s4st3r *BSD 3 04-30-2010 05:46 AM
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 03:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 09:36 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 08:31 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration