all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Alternative init file
@ 2005-09-19 12:48 August Karlstrom
  2005-09-19 13:21 ` Neon Absentius
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: August Karlstrom @ 2005-09-19 12:48 UTC (permalink / raw)


Hi all,

Is there a way to instruct Emacs to use an alternative initialization 
file, something like

    $ emacs --init-file=~/.emacs2

?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternative init file
  2005-09-19 12:48 Alternative init file August Karlstrom
@ 2005-09-19 13:21 ` Neon Absentius
  2005-09-19 13:27 ` Henrik Enberg
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Neon Absentius @ 2005-09-19 13:21 UTC (permalink / raw)


On Mon, Sep 19, 2005 at 12:48:57PM +0000, August Karlstrom wrote:
> Hi all,
> 
> Is there a way to instruct Emacs to use an alternative initialization 
> file, something like
> 
>    $ emacs --init-file=~/.emacs2
> 

Would this work?

$ emacs -q -l ~/.emacs2

You might also want to try 

$ man emacs

-- 
Everyone is so overwhelmed by the hospitality. And so many of the
people in the arena here, you know, were underprivileged anyway, so
this--this (she chuckles slightly) is working very well for them.
     -- Barbara Bush, about the refuges from New Orleans.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternative init file
  2005-09-19 12:48 Alternative init file August Karlstrom
  2005-09-19 13:21 ` Neon Absentius
@ 2005-09-19 13:27 ` Henrik Enberg
  2005-09-19 13:30 ` David Kastrup
       [not found] ` <mailman.7492.1127136943.20277.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 11+ messages in thread
From: Henrik Enberg @ 2005-09-19 13:27 UTC (permalink / raw)


> From: August Karlstrom <fusionfive@comhem.se>
> Date: Mon, 19 Sep 2005 12:48:57 GMT
> 
> Is there a way to instruct Emacs to use an alternative initialization 
> file, something like
> 
>     $ emacs --init-file=~/.emacs2

emacs -q --load ~/.emacs2

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternative init file
  2005-09-19 12:48 Alternative init file August Karlstrom
  2005-09-19 13:21 ` Neon Absentius
  2005-09-19 13:27 ` Henrik Enberg
@ 2005-09-19 13:30 ` David Kastrup
       [not found] ` <mailman.7492.1127136943.20277.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 11+ messages in thread
From: David Kastrup @ 2005-09-19 13:30 UTC (permalink / raw)


August Karlstrom <fusionfive@comhem.se> writes:

> Hi all,
>
> Is there a way to instruct Emacs to use an alternative initialization
> file, something like
>
>     $ emacs --init-file=~/.emacs2

emacs -q -l ~/.emacs2

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternative init file
       [not found] ` <mailman.7492.1127136943.20277.help-gnu-emacs@gnu.org>
@ 2005-09-19 20:52   ` August Karlstrom
  2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
  0 siblings, 1 reply; 11+ messages in thread
From: August Karlstrom @ 2005-09-19 20:52 UTC (permalink / raw)


Henrik Enberg wrote:
>>From: August Karlstrom <fusionfive@comhem.se>
>>Date: Mon, 19 Sep 2005 12:48:57 GMT
>>
>>Is there a way to instruct Emacs to use an alternative initialization 
>>file, something like
>>
>>    $ emacs --init-file=~/.emacs2
> 
> 
> emacs -q --load ~/.emacs2

OK, thanks everyone.


August

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Alternate init file, take two (was: Alternative init file)
  2005-09-19 20:52   ` August Karlstrom
@ 2005-09-20  7:32     ` Mathias Dahl
  2005-09-20  7:45       ` Alternate init file, take two Ralf Angeli
                         ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Mathias Dahl @ 2005-09-20  7:32 UTC (permalink / raw)


August Karlstrom <fusionfive@comhem.se> writes:

> Henrik Enberg wrote:
>>>From: August Karlstrom <fusionfive@comhem.se>
>>>Date: Mon, 19 Sep 2005 12:48:57 GMT
>>>
>>> Is there a way to instruct Emacs to use an alternative
>>> initialization file, something like
>>>
>>>    $ emacs --init-file=~/.emacs2
>> emacs -q --load ~/.emacs2
>
> OK, thanks everyone.

One problem with this solution is that any customizations the user
might do (using M-x customize), will be saved to ~/.emacs and not the
alternative init file.

Does anyone have any solution for this? Sometimes I want to start a
more "light" Emacs with a smaller init file, but still be able to use
the customize tool and save that to my smaller init file.

/Mathias

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternate init file, take two
  2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
@ 2005-09-20  7:45       ` Ralf Angeli
  2005-09-21  7:42         ` Mathias Dahl
  2005-09-20  8:48       ` David Hansen
                         ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Ralf Angeli @ 2005-09-20  7:45 UTC (permalink / raw)


* Mathias Dahl (2005-09-20) writes:

>>> emacs -q --load ~/.emacs2
>>
>> OK, thanks everyone.
>
> One problem with this solution is that any customizations the user
> might do (using M-x customize), will be saved to ~/.emacs and not the
> alternative init file.
>
> Does anyone have any solution for this? Sometimes I want to start a
> more "light" Emacs with a smaller init file, but still be able to use
> the customize tool and save that to my smaller init file.

See (info "(emacs)Saving Customizations") in a CVS Emacs' info
documentation or `C-h v custom-file RET'.

-- 
Ralf

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternate init file, take two
  2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
  2005-09-20  7:45       ` Alternate init file, take two Ralf Angeli
@ 2005-09-20  8:48       ` David Hansen
  2005-09-20  9:46       ` Alternate init file, take two (was: Alternative init file) Peter Dyballa
  2005-09-20  9:49       ` Tim X
  3 siblings, 0 replies; 11+ messages in thread
From: David Hansen @ 2005-09-20  8:48 UTC (permalink / raw)


On Tue, 20 Sep 2005 09:32:57 +0200 Mathias Dahl wrote:

> August Karlstrom <fusionfive@comhem.se> writes:
>
>> Henrik Enberg wrote:
>>>>
>>>> Is there a way to instruct Emacs to use an alternative
>>>> initialization file, something like
>>>>
>>>>    $ emacs --init-file=~/.emacs2
>>> emacs -q --load ~/.emacs2
>>
> One problem with this solution is that any customizations the user
> might do (using M-x customize), will be saved to ~/.emacs and not the
> alternative init file.

(setq custom-file "~/.emacs-custom.el")

[...]

(load custom-file t)

David

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternate init file, take two (was: Alternative init file)
  2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
  2005-09-20  7:45       ` Alternate init file, take two Ralf Angeli
  2005-09-20  8:48       ` David Hansen
@ 2005-09-20  9:46       ` Peter Dyballa
  2005-09-20  9:49       ` Tim X
  3 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2005-09-20  9:46 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 20.09.2005 um 09:32 schrieb Mathias Dahl:

> Does anyone have any solution for this? Sometimes I want to start a
> more "light" Emacs with a smaller init file, but still be able to use
> the customize tool and save that to my smaller init file.
>

Save .emacs temporarily under a different name! You can can do it in a 
script that swabs big .emacs and .emacs light ...

--
Greetings

   Pete

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
                                                           -- Rich Cook

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternate init file, take two (was: Alternative init file)
  2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
                         ` (2 preceding siblings ...)
  2005-09-20  9:46       ` Alternate init file, take two (was: Alternative init file) Peter Dyballa
@ 2005-09-20  9:49       ` Tim X
  3 siblings, 0 replies; 11+ messages in thread
From: Tim X @ 2005-09-20  9:49 UTC (permalink / raw)


Mathias Dahl <brakjoller@gmail.com> writes:

> August Karlstrom <fusionfive@comhem.se> writes:
> 
> > Henrik Enberg wrote:
> >>>From: August Karlstrom <fusionfive@comhem.se>
> >>>Date: Mon, 19 Sep 2005 12:48:57 GMT
> >>>
> >>> Is there a way to instruct Emacs to use an alternative
> >>> initialization file, something like
> >>>
> >>>    $ emacs --init-file=~/.emacs2
> >> emacs -q --load ~/.emacs2
> >
> > OK, thanks everyone.
> 
> One problem with this solution is that any customizations the user
> might do (using M-x customize), will be saved to ~/.emacs and not the
> alternative init file.
> 
> Does anyone have any solution for this? Sometimes I want to start a
> more "light" Emacs with a smaller init file, but still be able to use
> the customize tool and save that to my smaller init file.
> 

There is a variable which you can set that will tell emacs where to
write customize settings. However, I do vaguely rememher some problems
with this in older versions of emacs - don't know how reliable it is
now. 

Tim


-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Alternate init file, take two
  2005-09-20  7:45       ` Alternate init file, take two Ralf Angeli
@ 2005-09-21  7:42         ` Mathias Dahl
  0 siblings, 0 replies; 11+ messages in thread
From: Mathias Dahl @ 2005-09-21  7:42 UTC (permalink / raw)


Ralf Angeli <dev.null@iwi.uni-sb.de> writes:

> * Mathias Dahl (2005-09-20) writes:
>
>>>> emacs -q --load ~/.emacs2
>>>
>>> OK, thanks everyone.
>>
>> One problem with this solution is that any customizations the user
>> might do (using M-x customize), will be saved to ~/.emacs and not the
>> alternative init file.
>>
>> Does anyone have any solution for this? Sometimes I want to start a
>> more "light" Emacs with a smaller init file, but still be able to use
>> the customize tool and save that to my smaller init file.
>
> See (info "(emacs)Saving Customizations") in a CVS Emacs' info
> documentation or `C-h v custom-file RET'.

Aaah, great! That *exactly* what I wanted, thanks!

/Mathias

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-09-21  7:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-19 12:48 Alternative init file August Karlstrom
2005-09-19 13:21 ` Neon Absentius
2005-09-19 13:27 ` Henrik Enberg
2005-09-19 13:30 ` David Kastrup
     [not found] ` <mailman.7492.1127136943.20277.help-gnu-emacs@gnu.org>
2005-09-19 20:52   ` August Karlstrom
2005-09-20  7:32     ` Alternate init file, take two (was: Alternative init file) Mathias Dahl
2005-09-20  7:45       ` Alternate init file, take two Ralf Angeli
2005-09-21  7:42         ` Mathias Dahl
2005-09-20  8:48       ` David Hansen
2005-09-20  9:46       ` Alternate init file, take two (was: Alternative init file) Peter Dyballa
2005-09-20  9:49       ` Tim X

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.