diff --git a/emacs.el b/emacs.el index 0ed181b..a56f270 100644 --- a/emacs.el +++ b/emacs.el @@ -739,9 +739,17 @@ IF OK-IF-ALREADY-EXISTS is true force download." "*Face used by hl-line." :group '10sr) (global-hl-line-mode 1) ;; (hl-line-mode 1) -(set-face-underline 'hl-line t) -(set-face-background 'hl-line "unspecified-bg") -(set-face-foreground 'hl-line "unspecified-fg") +(if (< (display-color-cells) + 256) + ;; 8 colors + (progn + (set-face-underline 'hl-line t) + (set-face-background 'hl-line "unspecified-bg") + (set-face-foreground 'hl-line "unspecified-fg")) + ;; 256 colors + (set-face-background 'hl-line "color-235") + ;;(set-face-foreground 'hl-line "unspecified-fg") + ) ;; (set-variable 'hl-line-face '10sr-hl-line) ;; (setq hl-line-face nil) (set-variable 'hl-line-global-modes '(not