- Xah Lee's tutorial on Emacs Lisp.
- Steve Yegge's Emergency Elisp.
Bejeweled blitz
3 weeks ago
On Java, Python, JavaScript, VirtualBox and many more.
(copy-face 'default 'comint-highlight-prompt)In short, the first lines creates a font-face variable by copying the default face and the second line changes the foreground value of that font-face variable to "yellow".
(set-face-foreground 'comint-highlight-prompt "yellow")
\path\to\putty.exe -load "session name"
dircolors --sh > ~/.dircolorsThen you can edit ~/.dircolors using your favorite editor. This file has only one environment variable called LS_COLORS. LS_COLORS variable is ":" separated. Each entry is a name value pair. Name could be the type of the file (for e.g. di is directory, fi is regular file, ln is link, etc.) or a regular expression for file's name (for e.g. *.sh, *.csh, *.gif, etc.). Value is a ";" separated three integers that tell about the attribute, foreground and background respectively. Here is an example (the color rule for a directory):
di=00;34:This says the directory should be displayed with no special attributes and blue foreground. You can easily check the color codes using the following command:
dircolors --print-databaseFor handy reference, this is what I see in my machine:
# Attribute codes:So let us say I want to make my directories to be yellow and blinking, this is how I would have that entry:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
di=05;33:You must remember that not all attributes are supported by all the terminals. Some terminals have limited capabilities.
alias ls='ls --color=none -F'This will add a "/" after directory, "*" after executable and "@" after a link, etc.