I have something in my configuration that only works if Xorg else fails.
To solve this problem, I need to know if Xorg is working 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
Masha source share