all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: loading specific .emacs file on command line?
Date: Thu, 13 Feb 2003 15:56:27 -0700	[thread overview]
Message-ID: <3E4C229B.6040905@ihs.com> (raw)
In-Reply-To: mailman.1955.1045171264.21513.help-gnu-emacs@gnu.org

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
emacs -l ~/foo
emacs -l ~/bar
emacs -l ~/foo -l ~/bar

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

  parent reply	other threads:[~2003-02-13 22:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1955.1045171264.21513.help-gnu-emacs@gnu.org>
2003-02-13 21:36 ` loading specific .emacs file on command line? Edward O'Connor
2003-02-13 22:56 ` Kevin Rodgers [this message]
2003-02-14  6:59   ` Robert Marshall
2003-02-14 18:05     ` Kevin Rodgers
2003-02-13 21:20 john doe

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=3E4C229B.6040905@ihs.com \
    --to=kevin.rodgers@ihs.com \
    /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.