[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect if Emacs is running in a terminal
From: |
Peter Dyballa |
Subject: |
Re: How to detect if Emacs is running in a terminal |
Date: |
Sat, 16 Apr 2005 00:56:54 +0200 |
Am 15.04.2005 um 17:10 schrieb Denis Bueno:
Is there a better way?
What about this?
(cond ((= 21 emacs-major-version)
(progn
(desktop-read)
(cond ((string= "x" window-system)
(message "Sind in X11")
(load "~/.emacs_X11")
)) ; Ende X11
(cond ((string= "mac" window-system)
(message "Sind in Aqua")
(load "~/.emacs_Carbon")
; (require '.emacs_Carbon)
)) ; Ende Carbon
(cond ((string= 'nil window-system)
(message "Sind im Terminal")
(load "~/.emacs_nil")
)) ; Ende Terminal
)));Version 21
--
Greetings
Pete
Re: How to detect if Emacs is running in a terminal, Stefan Monnier, 2005/04/15