dot-emacs: Make the region show up in terminals.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 7 May 2008 17:33:11 +0000 (18:33 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 7 May 2008 17:33:11 +0000 (18:33 +0100)
This is ugly, but at least it makes the region visible.  This is valuable
for keystrokes like C-M-SPC, and M-h and C-M-h which incrementally
extend the region.

dot-emacs.el

index 789de88..1d550d3 100644 (file)
@@ -642,7 +642,7 @@ the regular expressions in `mdw-backup-disable-regexps'."
     (comint-highlight-input)
     (font-lock-builtin-face :weight bold)
     (font-lock-type-face :weight bold)
-    (region :background "grey30")
+    (region :background ,(if window-system "grey30" "blue"))
     (isearch :background "palevioletred2")
     (mdw-punct-face :foreground ,(if window-system "burlywood2" "yellow"))
     (mdw-number-face :foreground "yellow")