From 3bb7290d45ad315eb7b7f9a1b71e5b3a34c02793 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sun, 10 Dec 2017 19:04:55 -0500 Subject: [PATCH] Fix graphical configurations for terminal sessions --- init.el | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/init.el b/init.el index 17d81f3..67ad3b6 100644 --- a/init.el +++ b/init.el @@ -71,14 +71,10 @@ uniquify-ignore-buffers-re "^\\*" ; Ignore special buffers ) -;; Set up face styling for the default and mode-line faces. +;; Set up face styling for the default face. (set-face-attribute 'default nil :family "Terminus (TTF)" :height 90) -(set-face-attribute 'mode-line nil - :foreground "black" - :background "gray76" - :box '(:line-width -1 :color "azure4")) ;; Set the default styling rules to use. (setq-default @@ -94,12 +90,6 @@ ;; Misc. Mode Config ;;==================== -;; Disable Modes -(mapc (lambda (mode) (funcall mode -1)) - '( - tool-bar-mode ; Displays graphical tool bar. - )) - ;; Enable Modes (mapc (lambda (mode) (funcall mode 1)) '( @@ -117,6 +107,20 @@ visual-line-fringe-indicators t ; (visual-line-mode) - Shows fringe indicators for wrapping ) +;;==================== +;; Graphical Mode Config +;;==================== + +;; Style the mode line and turn off the toolbar when in graphical mode. +(if (display-graphic-p) + (progn + (set-face-attribute 'mode-line nil + :foreground "black" + :background "gray76" + :box '(:line-width -1 :color "azure4")) + (tool-bar-mode 0) + )) + ;;==================== ;; Package Manager ;;====================