From 399f6605bfd66ac594073b133222afbd65e71b4e Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Mon, 16 Jul 2012 14:42:18 +0100 Subject: [PATCH] Emacs: custom colors. Fits URxvt. --- .emacs | 52 +++++++++++++++++++++++++++++++++------------------- .muttrc | 6 +++--- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/.emacs b/.emacs index f9e3e9c8..0338a166 100644 --- a/.emacs +++ b/.emacs @@ -83,17 +83,35 @@ ;;============================================================================== ;; Theme ;;============================================================================== -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(lazy-highlight ((t (:background "blue")))) - '(link ((t (:foreground "cyan" :underline t)))) - '(minibuffer-prompt ((t (:foreground "cyan")))) - '(shadow ((t (:foreground "green"))))) -(set-face-foreground 'font-lock-comment-face "Red" ) +(set-face-foreground 'font-lock-builtin-face "red" ) +(set-face-foreground 'font-lock-comment-delimiter-face "color-240" ) +(set-face-foreground 'font-lock-comment-face "color-240" ) +(set-face-foreground 'font-lock-constant-face "color-240" ) +(set-face-foreground 'font-lock-doc-face "brightgreen" ) +(set-face-foreground 'font-lock-function-name-face "brightcyan" ) +(set-face-bold-p 'font-lock-function-name-face t ) +(set-face-foreground 'font-lock-keyword-face "brightred" ) +(set-face-foreground 'font-lock-preprocessor-face "green" ) +(set-face-foreground 'font-lock-string-face "color-39" ) +(set-face-foreground 'font-lock-type-face "color-166" ) +(set-face-foreground 'font-lock-variable-name-face "brightyellow" ) + +(set-face-foreground 'link "brightblue" ) +(set-face-underline-p 'link t) +(set-face-foreground 'minibuffer-prompt "cyan" ) +(set-face-background 'region "color-17") + +;; (set-face-background 'lazy-highlight "brightgreen" ) +;; (set-face-background 'secondary-selection "SkyBlue4") +;; (set-face-background 'trailing-whitespace "red1") +;; (set-face-background 'vertical-border "color-17") +;; (set-face-foreground 'warning "DarkOrange") +;; (set-face-bold-p 'warning t) +;; (set-face-foreground 'nobreak-space "cyan") +;; (set-face-foreground 'shadow "grey70" ) ;; For line numbers. +;; (set-face-foreground 'success "Green1") +;; (set-face-bold-p 'success t) ;;============================================================================== ;; Completion @@ -101,8 +119,6 @@ ;(global-set-key (kbd "C-") 'dabbrev-expand) ;(define-key minibuffer-local-map (kbd "C-") 'dabbrev-expand) - - ;;============================================================================== ;; Automode default modification ;;============================================================================== @@ -459,13 +475,11 @@ ;;============================================================================== (require 'mediawiki) (custom-set-variables - '(mediawiki-site-alist - ( quote - ( - ("Wikipedia" "http://en.wikipedia.org/w/" "Ambrevar" "" "Main Page") - ("Wikibooks" "http://en.wikibooks.org/w/" "Ambrevar" "" "LaTeX") - ("ArchLinux" "https://wiki.archlinux.org/" "Ambrevar" "" "Mutt") - )))) + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(mediawiki-site-alist (quote (("Wikipedia" "http://en.wikipedia.org/w/" "Ambrevar" "" "Main Page") ("Wikibooks" "http://en.wikibooks.org/w/" "Ambrevar" "" "LaTeX") ("ArchLinux" "https://wiki.archlinux.org/" "Ambrevar" "" "Mutt"))))) ;;============================================================================== ;;============================================================================== diff --git a/.muttrc b/.muttrc index 45315a71..ffef7f8a 100644 --- a/.muttrc +++ b/.muttrc @@ -59,7 +59,7 @@ set my_ac_work=work set my_ac_university=university ## Login -## Store password as follows: +## Store passwords as follows: ## set my_pw_account = foo source "gpg2 -dq ~/.mutt-pwds.gpg |" @@ -69,9 +69,9 @@ folder-hook '$my_ac_work' 'source ~/.mutt/$my_ac_work' folder-hook '$my_ac_university' 'source ~/.mutt/$my_ac_university' ## Switch to default account on startup -#source "~/.mutt/$my_ac_personal" +source "~/.mutt/$my_ac_personal" #source "~/.mutt/$my_ac_work" -source "~/.mutt/$my_ac_university" +# source "~/.mutt/$my_ac_university" ## Keys macro index 'source ~/.mutt/$my_ac_personal!'