-(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))))