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

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

Re: One .emacs for three operating system


From: Eric Lilja
Subject: Re: One .emacs for three operating system
Date: Wed, 15 Aug 2007 01:59:41 +0200
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Eric Hanchrow wrote:
"Eric" == Eric Lilja <mindcooler@gmail.com> writes:

    Eric> if running-under-solaris is true do this else ; assume we
    Eric>    are running under winxp or fedora7 do that

I do just that sort of thing like this:

(case system-type
  ((windows-nt)
   "Boy, I'm unhappy because I'm running on Windoze")
  ((cygwin32 cygwin)
   (setq desktop-modes-not-to-save `(dired-mode)))
  ((darwin)
   ("OS X")
   (setq grep-command "egrep --color=never -nH -e "))
  ((gnu/linux)
   (setq freedom-level "'Free' as in 'Belgian Ale'")))


Thanks Eric! Someone suggested cond in a private email but I actually like your version better. Thanks also to the other replies, I appreciate it!

- Eric





reply via email to

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