From: Edward O'Connor <oconnor@soe.ucsd.edu>
Subject: Re: loading specific .emacs file on command line?
Date: 13 Feb 2003 13:36:28 -0800 [thread overview]
Message-ID: <ddr8abg8wz.fsf@oecpc11.ucsd.edu> (raw)
In-Reply-To: mailman.1955.1045171264.21513.help-gnu-emacs@gnu.org
> 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 do something like this: say you want to be able to run
emase with a --foo switch, and you want certain things to happen
only when --foo is given on the command line. Something like this
in your .emacs file would do:
(when (member "--foo" command-line-args)
;; do
;; stuff
;; here
(setq command-line-args (delete "--foo") command-line-args))
Ted
--
Edward O'Connor
oconnor@soe.ucsd.edu
next parent reply other threads:[~2003-02-13 21:36 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 ` Edward O'Connor [this message]
2003-02-13 22:56 ` loading specific .emacs file on command line? Kevin Rodgers
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=ddr8abg8wz.fsf@oecpc11.ucsd.edu \
--to=oconnor@soe.ucsd.edu \
/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.