[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using the same custom file in two different OSes
From: |
Dani Moncayo |
Subject: |
Re: Using the same custom file in two different OSes |
Date: |
Mon, 14 Jan 2013 19:46:01 +0100 |
> But you can do it using Lisp, in your init file (~/.emacs). (Use a separate
> `custom-file' for the stuff that Customize manages. Keep your init file for
> Lisp that you manage.)
Yes, that's how I have it.
> Try first using Customize on each of the platforms separately, to see what
> values it gives you for those faces, for the automatically generated
> `custom-set-faces' sexp.
>
> Then remove the settings for those exceptional faces from `custom-file',
> moving
> them to your init file instead and wrapping them with (custom-set-faces ...):
>
> (if (eq system-type 'windows-nt)
> (custom-set-faces ...)
> (custom-set-faces ...))
That works, but I've observed that each time I save any customization,
my custom file is regenerated with _all_ the customization loaded at
that time, and the platform-specific stuff that I removed from my
custom file is then reinserted. Therefore, in my init file I must put
the platform-specific customization _after_ the loading of the custom
file:
(setq custom-file "my-custom-file.el")
(load custom-file)
(if (eq system-type 'windows-nt)
(custom-set-faces <windows-specific stuff>)
(custom-set-faces <ubuntu-specific stuff>)
Thank you so much for your help.
--
Dani Moncayo
- Using the same custom file in two different OSes, Dani Moncayo, 2013/01/13
- RE: Using the same custom file in two different OSes, Drew Adams, 2013/01/13
- Re: Using the same custom file in two different OSes,
Dani Moncayo <=
- RE: Using the same custom file in two different OSes, Drew Adams, 2013/01/14
- Re: Using the same custom file in two different OSes, Dani Moncayo, 2013/01/14
- Re: Using the same custom file in two different OSes, Peter Dyballa, 2013/01/14
- Re: Using the same custom file in two different OSes, Dani Moncayo, 2013/01/14
- Re: Using the same custom file in two different OSes, Didier Verna, 2013/01/15
- Re: Using the same custom file in two different OSes, Dani Moncayo, 2013/01/15
- RE: Using the same custom file in two different OSes, Drew Adams, 2013/01/14
- Re: Using the same custom file in two different OSes, Dani Moncayo, 2013/01/16
- Message not available
- Re: Using the same custom file in two different OSes, Sebastien Vauban, 2013/01/17
- RE: Using the same custom file in two different OSes, Drew Adams, 2013/01/17