all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ed L Cashin <ecashin@uga.edu>
Subject: Re: customize messing up .emacs symlink?
Date: Tue, 02 Mar 2004 19:55:55 -0500	[thread overview]
Message-ID: <87oereda04.fsf@cs.uga.edu> (raw)
In-Reply-To: 87hdx76wu5.fld@barrow.com

floyd@barrow.com (Floyd L. Davidson) writes:

...
>   (if (string-match "foo.a" (system-name))
>       (load "~/.fooa.custom.el")
>      (if  (string-match "foo.b" (system-name))
>          (load "~/.foob.custom.el")
>         (if  (string-match "foo.c" (system-name))
>             (load "~/.fooc.custom.el")
>            (if  (string-match "foo.d" (system-name))
>                (load "~/.food.custom.el")
>               ;; otherwise, this is the default
>               (load "~/.fooe.custom.el")))))

Thanks.  Something nice for that kind of lisp is "cond".

;;; host-specific configuration
(let ((host (system-name)))
  (if host
      (cond ((equal host "nilda")
	     (set-background-color "SteelBlue4"))
	    ((equal host "tougas")
	     (progn
	       (set-background-color "ivory4")
	       (set-cursor-color "plum")))
	    ((equal host "marblerye.cs.uga.edu")
	     (progn
	       (set-background-color "DarkSlateGray")
	       (set-cursor-color "Orchid")))
	    ((equal host "tornado")
	     (progn
	       (set-background-color "SlateGray")
	       (set-foreground-color "wheat")
	       (set-cursor-color "magenta")))
	    (t
	     (if (getenv "GNUS_EMACS")
		 (set-background-color "DarkSlateGray")
		 (set-background-color "SlateGray"))))))


-- 
--Ed L Cashin     PGP public key: http://noserose.net/e/pgp/

  reply	other threads:[~2004-03-03  0:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02  2:00 customize messing up .emacs symlink? Ed L Cashin
2004-03-02  4:03 ` D. D. Brierton
2004-03-02 15:09   ` Ed L Cashin
2004-03-02 15:36     ` D. D. Brierton
2004-03-02 18:06       ` Ed L Cashin
2004-03-02 16:24     ` Floyd L. Davidson
2004-03-03  0:55       ` Ed L Cashin [this message]
2004-03-03  1:02         ` Jesper Harder
2004-03-02 18:52 ` Kevin Rodgers
2004-03-03  0:59   ` Ed L Cashin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oereda04.fsf@cs.uga.edu \
    --to=ecashin@uga.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.