Emacs: colors improvement.

Emacs: printf + fprintf space in snippet.
Shell: alias for Zathura.
master
Ambrevar 2012-07-16 16:08:18 +01:00
parent 399f6605bf
commit f102a7907e
4 changed files with 10 additions and 3 deletions

6
.emacs
View File

@ -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")

View File

@ -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) "\);" "")}

View File

@ -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) "\);" "")}

View File

@ -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'