.emacsとか.zshrcの設定とか

yatex-mode

Macでyatexの快適生活を過せるようなテクをid:witchmakersに教えてもらいました。

なんかバックスラッシュが円マークで読まれてたりして、yatex-modeではなくlatex-modeで開かれたりしてはまったりしていた。あほすぐる。

(setq auto-mode-alist
      (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)

(setq tex-command "~/bin/platex2pdf"
      dvi2-command "open -a Preview.app")

PATHとかに~/bin登録したんだけど、どうもうまくいかなかったので直で指定しています。まあ動いたらいいや。

.zshrc

gemのところがうまく動かなかったんだけど、id:beatinaniwaに助けてもらいました。

autoload -U compinit
compinit
export LANG=ja_JP.UTF-8

PROMPT="%/%% "
PROMPT2="%_%% "
SPROMPT="%r is correct? [n,y,a,e]: "

HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups     # ignore duplication command history list
setopt share_history        # share command history datals

bindkey -e

autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end

setopt auto_pushd

setopt correct

setopt list_packed

alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'

export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/Users/yasuhisa/bin

export MANPATH=/opt/local/share/man:$MANPATH

export RUBYLIB=/usr/lib