summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-12-07 20:59:00 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-12-07 20:59:41 +0100
commite6863595bf8a2d88c33d72aae9995561b8e269f1 (patch)
tree9c8817d1caf626f817eb9897770000a3bb50c35a /emacs
parent21b8518d20ae44e125e1a91459a9e968f86e82bd (diff)
downloaddotfiles-e6863595bf8a2d88c33d72aae9995561b8e269f1.tar.xz
emacs: fix 256 colors support in screen
Diffstat (limited to 'emacs')
-rw-r--r--emacs12
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs b/emacs
index 6abc971..0eef7a0 100644
--- a/emacs
+++ b/emacs
@@ -36,6 +36,16 @@
;; - http://www.brockman.se/software/zenburn/zenburn.el
(color-theme-zenburn)
+;; Support 256 colors in screen
+;; - http://article.gmane.org/gmane.emacs.devel/109504/
+(if (not (window-system)) (load "term/rxvt"))
+(defun terminal-init-screen ()
+ "Terminal initialization function for screen."
+ ;; Use the rxvt color initialization code.
+ (rxvt-register-default-colors)
+ (tty-set-up-initial-frame-faces)
+)
+
;; Don't show the welcome message
(setq inhibit-startup-screen t)
@@ -173,7 +183,7 @@
(setq kill-read-only-ok 1)
;; Partially integrate the kill-ring and X cut-buffer
-(setq x-select-enable-clipboard t)
+;(setq x-select-enable-clipboard t)
;; Copy/paste with accentuation intact
(setq selection-coding-system 'compound-text-with-extensions)