我的配置中有一些东西只能在 Xorg 中工作,否则会出错。
要解决这个问题,我需要知道 Xorg 是否正在运行。我该如何检查?
(defun nCdy-mode ()
;; TOOD: Add Xorg check
;(tool-bar-mode nil)
(menu-bar-mode nil) ; TODO: Add hotkey
;(scroll-bar-mode nil)
(setq inhibit-splash-screen t)
(setq standard-indent 4)
;;(mouse-wheel-mode t)
(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))
;;TODO: Add Xorg check
;(require 'nyan-mode)
;(nyan-mode)
;(nyan-start-animation)
;;nyanyanyanyanyanyanyanyanyanyan
谢谢
最佳答案
(case window-system
(x '"X11 running")
(otherwise "No X11"))
关于linux - 如何检查 Xorg 是否在 emacs lisp 中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8643436/