Browse Source

Fix Emacs + urxvt color weirdness on Linux

master
Taylor Bockman 9 years ago
parent
commit
30dafdab22
  1. 2
      dotfiles/Xresources
  2. 10
      dotfiles/zshrc
  3. 5
      scripts/sysinstall/install_packages.sh

2
dotfiles/Xresources

@ -141,7 +141,7 @@ URxvt*boldFont: xft:Inconsolata:bold
URxvt.letterSpace: -1 URxvt.letterSpace: -1
URxvt*termName: rxvt URxvt*termName: rxvt
URxvt*iso14755: False
URxvt.urgentOnBell: true URxvt.urgentOnBell: true
! URxvt*foreground: color ! URxvt*foreground: color
! URxvt*color0: color ! URxvt*color0: color

10
dotfiles/zshrc

@ -5,7 +5,17 @@ export LANG=en_US.UTF-8
export VISUAL="emacs -nw" export VISUAL="emacs -nw"
export EDITOR="$VISUAL" export EDITOR="$VISUAL"
export ITERM_24BIT=1 export ITERM_24BIT=1
export TERM=rxvt-256color
# Colors get weird with Emacs in urxvt. I use urxvt on Linux
# so I need to export rxvt-256color and copy the rxvt-256color terminfo
# to the right location (see package installer for details).
# This will need to be changed if you use a different terminal emulator.
if [[ "$OSTYPE" == "linux-gnu" ]]; then
export TERM=rxvt-256color
else
export TERM=xterm-256color export TERM=xterm-256color
fi
alias emacs='emacs -nw' alias emacs='emacs -nw'
alias irssi='TERM=screen-256color irssi' alias irssi='TERM=screen-256color irssi'

5
scripts/sysinstall/install_packages.sh

@ -88,3 +88,8 @@ sudo locale-gen
# copy services/10-physlock to /etc/pm/sleep.d/10-vlock # copy services/10-physlock to /etc/pm/sleep.d/10-vlock
# replacing USERNAME with their name via sed. # replacing USERNAME with their name via sed.
# remember to use sudo # remember to use sudo
# Copy terminfo so that text editors can find it
mkdir ~/.terminfo
nkdir ~/.terminfo/r/
ln -s /usr/share/terminfo/r/rxvt-unicode ~/.terminfo/r/rxvt-unicode

Loading…
Cancel
Save