help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customize messing up .emacs symlink?


From: Jesper Harder
Subject: Re: customize messing up .emacs symlink?
Date: Wed, 03 Mar 2004 02:02:11 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Ed L Cashin <ecashin@uga.edu> writes:

> Something nice for that kind of lisp is "cond".
>
>       (cond ((equal host "nilda")
>            (set-background-color "SteelBlue4"))
>           ((equal host "tougas")
>            (progn
>              (set-background-color "ivory4")
>              (set-cursor-color "plum")))
>               ...)))

You can dispense with the progns to make even nicer:

(cond ((equal host "nilda")
       (set-background-color "SteelBlue4"))
      ((equal host "tougas")
         (set-background-color "ivory4")
         (set-cursor-color "plum")))
      ...)


reply via email to

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