[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading specific .emacs file on command line?

From: Kevin Rodgers
Subject: Re: loading specific .emacs file on command line?
Date: Thu, 13 Feb 2003 15:56:27 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

john doe wrote:

Is there a line switch to load a specific .emacs
file... if you have more than one for the same user?
My problem is I have large sections of my .emacs file
that I want to use sometimes and not other times. Can
I have large sections of the .emacs file load only for
some files and not others?

You could break your .emacs file into multiple *.el files, byte-compile them
if you want, and either load them from your .emacs file:

(if foo
  (load-file "~/foo"))
(if bar
  (load-file "~/bar"))

or load them explicitly on the command line:

emacs -l ~/foo
emacs -l ~/bar
emacs -l ~/foo -l ~/bar

<a href="mailto:&lt;kevin.rodgers&#64;;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]