I've got some things in my configuration that works only in Xorg else dropping errors.
To solve it I need to know if Xorg is running or not. How can I check it ?
(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
thank you