From f102a7907e727379e5a17364207a2846e56e6abd Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Mon, 16 Jul 2012 16:08:18 +0100 Subject: [PATCH] Emacs: colors improvement. Emacs: printf + fprintf space in snippet. Shell: alias for Zathura. --- .emacs | 6 +++++- .../plugins/yas/snippets/text-mode/cc-mode/c-mode/fprintf | 2 +- .../plugins/yas/snippets/text-mode/cc-mode/c-mode/printf | 2 +- .shell.d/alias_rc | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index 0338a166..ac3d1ce2 100644 --- a/.emacs +++ b/.emacs @@ -87,7 +87,7 @@ (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-constant-face "magenta" ) (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 ) @@ -101,6 +101,10 @@ (set-face-underline-p 'link t) (set-face-foreground 'minibuffer-prompt "cyan" ) (set-face-background 'region "color-17") +(set-face-foreground 'error "red") +(set-face-bold-p 'error t) + +;; (set-face-foreground 'compilation-column-number "magenta") ;; (set-face-background 'lazy-highlight "brightgreen" ) ;; (set-face-background 'secondary-selection "SkyBlue4") diff --git a/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/fprintf b/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/fprintf index 7ec513f6..147d472f 100644 --- a/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/fprintf +++ b/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/fprintf @@ -2,5 +2,5 @@ # name : fprintf # contributor : joaotavora, ambrevar # -- -fprintf ($1, "${2:%s}\\n"${2:$(if (string-match "%" text) "," "\);") +fprintf ($1, "${2:%s}\\n"${2:$(if (string-match "%" text) ", " "\);") }$3${2:$(if (string-match "%" text) "\);" "")} \ No newline at end of file diff --git a/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/printf b/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/printf index 055461d1..c2915d58 100644 --- a/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/printf +++ b/.emacs.d/plugins/yas/snippets/text-mode/cc-mode/c-mode/printf @@ -2,5 +2,5 @@ # name : printf # contributor : joaotavora # -- -printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);") +printf ("${1:%s}\\n"${1:$(if (string-match "%" text) ", " "\);") }$2${1:$(if (string-match "%" text) "\);" "")} \ No newline at end of file diff --git a/.shell.d/alias_rc b/.shell.d/alias_rc index 788e5303..695392cf 100644 --- a/.shell.d/alias_rc +++ b/.shell.d/alias_rc @@ -85,6 +85,9 @@ fi ## Screensaver [ -e "/usr/bin/xscreensaver-command" ] && alias xss='xscreensaver-command --lock' +## Zathura -- Fork to background. +[ -e "/usr/bin/zathura" ] && alias zat='zathura --fork' + ## Configuration files [ -e "/etc/rc.conf" ] && alias ercc='sudo $EDITOR /etc/rc.conf'