From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: customize messing up .emacs symlink? Date: Wed, 03 Mar 2004 02:02:11 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <873c8sdn3g.fsf@cs.uga.edu> <87u117cmlo.fsf@cs.uga.edu> <87hdx76wu5.fld@barrow.com> <87oereda04.fsf@cs.uga.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078334434 16428 80.91.224.253 (3 Mar 2004 17:20:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Mar 2004 17:20:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 03 18:20:27 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aya2k-0002B9-00 for ; Wed, 03 Mar 2004 18:20:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyZzG-0000oj-Sh for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Mar 2004 12:16:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17406 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17406 Ed L Cashin 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"))) ...)