summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-05-25 19:58:44 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-05-25 20:00:45 +0200
commit9f8ecdf1c8c4ad378f4644e9b43726f4e9ecfc27 (patch)
tree8a94413f3fcc3fea278bc6641e222571cdf2977f /emacs
parentdfcea70ad9b4cd7198b251f90b1b2b1281ea42f6 (diff)
downloaddotfiles-9f8ecdf1c8c4ad378f4644e9b43726f4e9ecfc27.tar.gz
dotfiles-9f8ecdf1c8c4ad378f4644e9b43726f4e9ecfc27.tar.xz
dotfiles-9f8ecdf1c8c4ad378f4644e9b43726f4e9ecfc27.zip
added some terminal fixes
Diffstat (limited to 'emacs')
-rw-r--r--emacs34
1 files changed, 34 insertions, 0 deletions
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))))
+ '(("<S-tab>" "M-[ Z")
+ ("<S-up>" "<select>")
+ ("<S-down>" "M-[ b")
+ ("<S-right>" "M-[ c")
+ ("<S-left>" "M-[ d")
+ ("<M-up>" "ESC M-O A")
+ ("<M-down>" "ESC M-O B")
+ ("<M-right>" "ESC M-O C")
+ ("<M-left>" "ESC M-O D")
+ ("<C-up>" "M-O a")
+ ("<C-down>" "M-O b")
+ ("<C-right>" "M-O c")
+ ("<C-left>" "M-O d")
+ ("<C-M-up>" "ESC M-O a")
+ ("<C-M-down>" "ESC M-O b")
+ ("<C-M-right>" "ESC M-O c")
+ ("<C-M-left>" "ESC M-O d")
+ ("<M-S-up>" "ESC M-[ a")
+ ("<M-S-down>" "ESC M-[ b")
+ ("<M-S-right>" "ESC M-[ c")
+ ("<M-S-left>" "ESC M-[ d")
+ )))
+
(setq auto-mode-alist (cons '("README" . text-mode) auto-mode-alist))
(setq compilation-scroll-output t)