From 9f8ecdf1c8c4ad378f4644e9b43726f4e9ecfc27 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 25 May 2010 19:58:44 +0200 Subject: added some terminal fixes --- emacs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/emacs b/emacs index 506b4f9..3e8f6ee 100644 --- a/emacs +++ b/emacs @@ -233,6 +233,11 @@ '(widget-field-face ((t (:background "gray85"))) t) '(widget-single-line-field-face ((t (:background "gray85"))) t)) +(if (not window-system) + (custom-set-faces + '(linum ((t (:background "black" :foreground "white" :box nil :overline nil :underline nil :slant normal :weight normal :height 0.75 :width normal)))) + '(region ((nil (:inverse-video t)))))) + (global-set-key [mouse-3] 'imenu) ;; define F1 to display man page of the current word @@ -259,6 +264,35 @@ (normal-top-level-add-subdirs-to-load-path) (nconc load-path orig-load-path)) +; fix keys for urxvt +(if (not window-system) + (mapc (lambda (map) + (define-key function-key-map + (read-kbd-macro (cadr map)) + (read-kbd-macro (car map)))) + '(("" "M-[ Z") + ("" "