emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]