[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: emacs customization suggestion: 'customize-existing'
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: emacs customization suggestion: 'customize-existing'] |
Date: |
06 Feb 2004 16:55:24 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> 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
- address@hidden: emacs customization suggestion: 'customize-existing'], Richard Stallman, 2004/02/06
- Re: address@hidden: emacs customization suggestion: 'customize-existing'],
Kim F. Storm <=
- 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