-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathversion-info.el
30 lines (21 loc) · 1.13 KB
/
version-info.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; from http://www.cs.berkeley.edu/~smcpeak/elisp/scott.emacs.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ------------ what version of emacs? -----------------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; true if we're under NT
(setq version-os-nt (equal (getenv "OS") "Windows_NT"))
; true if we're under XEmacs (www.xemacs.org)
(setq version-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
; true if we're under regular emacs
(setq version-emacs (not version-xemacs))
; true if we're running under anything other than a text terminal
(setq version-not-term (not (not window-system)))
; true under regular emacs and X windows
(setq version-emacs-x (and (not version-xemacs) (equal window-system 'x)))
(provide 'version-info)