* is custom-set-variables saved somewhere?
@ 2016-02-03 13:51 Neal Becker
2016-02-03 13:53 ` tomas
0 siblings, 1 reply; 3+ messages in thread
From: Neal Becker @ 2016-02-03 13:51 UTC (permalink / raw)
To: help-gnu-emacs
at the end of .emacs is :
(custom-set-variables ... )
I'd like to somehow be able to re-execute this automatically later. Is
there some way to do this? Is this set of customized variables saved
somewhere so I can re-execute all the settings?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is custom-set-variables saved somewhere?
2016-02-03 13:51 is custom-set-variables saved somewhere? Neal Becker
@ 2016-02-03 13:53 ` tomas
0 siblings, 0 replies; 3+ messages in thread
From: tomas @ 2016-02-03 13:53 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Feb 03, 2016 at 08:51:09AM -0500, Neal Becker wrote:
> at the end of .emacs is :
>
> (custom-set-variables ... )
>
> I'd like to somehow be able to re-execute this automatically later. Is
> there some way to do this? Is this set of customized variables saved
> somewhere so I can re-execute all the settings?
I don't think so -- but you can achieve a similar effect with some
forethought. It is possible to tell Emacs to keep the customizations
in a separate file (not in the standard init file) by setting the
variable "custom-file".
You have to "bootstrap" this thing by including something in your
init file along the lines of
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
(cf. the variable's documentation for "custom-file").
regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlayBj8ACgkQBcgs9XrR2kaVSwCeO0EVCPs8uucGyjJHLpql3jPj
7SEAn0nEjiqDef4HYu6QMiR+8TyOUXCw
=gwc/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is custom-set-variables saved somewhere?
[not found] <mailman.3497.1454507508.843.help-gnu-emacs@gnu.org>
@ 2016-02-03 17:16 ` unfrostedpoptart
0 siblings, 0 replies; 3+ messages in thread
From: unfrostedpoptart @ 2016-02-03 17:16 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, February 3, 2016 at 5:51:51 AM UTC-8, Neal Becker wrote:
> at the end of .emacs is :
>
> (custom-set-variables ... )
>
> I'd like to somehow be able to re-execute this automatically later. Is
> there some way to do this? Is this set of customized variables saved
> somewhere so I can re-execute all the settings?
It's saved right there in your .emacs file. To execute it, just put the cursor right after the closing parenthesis of the (custom-set-variables ...) block and type control-x control-e. This is the command eval-last-seep which will execute the custom-set-variables block.
You could also highlight (i.e. create a region) including that code in your file and then Meta/Escape-x eval-region which runs all the highlighted code.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-03 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-03 13:51 is custom-set-variables saved somewhere? Neal Becker
2016-02-03 13:53 ` tomas
[not found] <mailman.3497.1454507508.843.help-gnu-emacs@gnu.org>
2016-02-03 17:16 ` unfrostedpoptart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).