summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2021-04-07 16:31:34 -0400
committerAmin Bandali <bandali@gnu.org>2021-04-07 16:31:34 -0400
commit6ff057acce6346a264ed839d27d6d5245a36f4c7 (patch)
tree862c11a595735caa821db32a4406e44eec25b5da
parentbfe53d9b8ee51e483d69763c0488d7da88eab06b (diff)
downloadconfigs-6ff057acce6346a264ed839d27d6d5245a36f4c7.tar.gz
configs-6ff057acce6346a264ed839d27d6d5245a36f4c7.tar.xz
configs-6ff057acce6346a264ed839d27d6d5245a36f4c7.zip
Customize mode-line faces only in graphical environments
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 5594987..79be3bb 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -444,15 +444,16 @@ This sets each user option VAR's value to the corresponding VALUE.
(convert-standard-filename "info/") source-directory)))
;; faces
-(with-eval-after-load 'faces
- (let* ((grey "#e7e7e7")
- (darker-grey "#d9d9d9")
- (box ;; `(:line-width -1 :style released-button)
- 'unspecified))
- (set-face-attribute 'mode-line nil
- :background grey :box box)
- (set-face-attribute 'mode-line-inactive nil
- :background darker-grey :box box)))
+(when (display-graphic-p)
+ (with-eval-after-load 'faces
+ (let* ((grey "#e7e7e7")
+ (darker-grey "#d9d9d9")
+ (box ;; `(:line-width -1 :style released-button)
+ 'unspecified))
+ (set-face-attribute 'mode-line nil
+ :background grey :box box)
+ (set-face-attribute 'mode-line-inactive nil
+ :background darker-grey :box box))))
;;; Useful utilities