Emacs: Fix early-theme.el.

Only try to hide the tool-bar if we're in a GUI.
This commit is contained in:
tastytea 2020-04-25 18:29:37 +02:00
parent 9081bde3d4
commit f5a3541247

View File

@ -1,6 +1,6 @@
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*- ;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-04-25T18:23:05+0200> ;; Time-stamp: <2020-04-25T18:27:20+0200>
;;; Commentary: ;;; Commentary:
@ -75,8 +75,9 @@
(face-background 'default) "\")\n" (face-background 'default) "\")\n"
"(set-face-foreground 'default \"" "(set-face-foreground 'default \""
(face-foreground 'default) "\")\n" (face-foreground 'default) "\")\n"
"(tool-bar-mode -1)\n" "(menu-bar-mode -1)\n"
"(menu-bar-mode -1)\n")) "(when (display-graphic-p)\n"
" (tool-bar-mode -1))\n"))
(with-temp-file (expand-file-name "early-theme.el" (with-temp-file (expand-file-name "early-theme.el"
user-emacs-directory) user-emacs-directory)
(insert minimal-theme))))) (insert minimal-theme)))))