[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: emacs customization suggestion: 'customize-existing'
From: |
Daniel Ortmann |
Subject: |
Re: address@hidden: emacs customization suggestion: 'customize-existing'] |
Date: |
06 Feb 2004 10:19:35 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Can this be extended to handle the customization settings in a system
wide way?
address@hidden (Kim F. Storm) writes:
> > Problem Solved:
> >
> > Moving a laptop between the office and home requires customization
> > changes in gnus, for example. The variables which need to change
> > are in different groups, however, and are hard to find.
>
>
> For that specific problem, I use the following code snippet at the
> top of my .emacs file:
>
> [At home my laptop gets an IP address in the 10.22.33 subnet;
> while at work, I get something else]
>
> (setq at-home-p
> (if (fboundp 'network-interface-info)
> (let* ((info (network-interface-info "eth0"))
> (ip (and info (car info))))
> (and ip
> (= (aref ip 0) 10)
> (= (aref ip 1) 22)
> (= (aref ip 2) 33)))))
>
> Then I simply add tests
>
> (if at-home-p ...home_setup... ...work_setup...)
>
> around settings (like which SMTP server to use) that differs
> at home and at work.
>
> --
> Kim F. Storm <address@hidden> http://www.cua.dk
>
--
Daniel Ortmann, LSI Logic, 3425 40th Av NW, Suite 200, Rochester MN 55901
work: address@hidden / 507.535.3861 / 63861 int / 8012.3861 gdds
home: address@hidden / 507.288.7732, 2414 30Av NW #D, Rochester MN 55901
gpg/pgp public key: http://wwwkeys.us.pgp.net
jabber: address@hidden / address@hidden
- address@hidden: emacs customization suggestion: 'customize-existing'], Richard Stallman, 2004/02/06
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Kim F. Storm, 2004/02/06
- Re: address@hidden: emacs customization suggestion: 'customize-existing'],
Daniel Ortmann <=
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Kevin Rodgers, 2004/02/06
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Richard Stallman, 2004/02/08
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Per Abrahamsen, 2004/02/09
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Richard Stallman, 2004/02/10
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Per Abrahamsen, 2004/02/10
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Kevin Rodgers, 2004/02/10
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Per Abrahamsen, 2004/02/11
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Richard Stallman, 2004/02/11
- Re: address@hidden: emacs customization suggestion: 'customize-existing'], Per Abrahamsen, 2004/02/12