pcl-cvsモードで色設定をする方法
cvsのある環境では emacs + pcl-cvs or vc-modeを使うのが普通だと思います。というかコマンドラインでcvsやsvnにcommitやdiffするのはあほらしいです。
僕はどちらかというとvc-modeよりpcl-cvsのほうが好きでvc-modeはほとんど使っていません。(というか使い方がよくわかっていない。。)
最近会社のemacsを256色化する事に成功したのでpcl-cvsでも色設定をしようと思い(require 'pcl-cvs)とするがそんなものは存在しないとエラーを吐く。
原因はpcl-cvsじゃなくpcvsだっただけ。(これに2時間くらいはまった。。)
;(require 'pcl-cvs) (require 'pcvs) (require 'diff-mode) (modify-coding-system-alist 'process "cvs" '(undecided . euc-jp-unix)) ;; cvs-mode face (set-face-foreground 'cvs-filename-face "color-33") (set-face-foreground 'cvs-handled-face "color-239") (set-face-foreground 'cvs-header-face "color-123") (set-face-foreground 'cvs-marked-face "color-170") (set-face-foreground 'cvs-msg-face "color-85") (set-face-foreground 'cvs-need-action-face "brightred") (set-face-foreground 'cvs-unknown-face "color-131") ;; diff-mode face (set-face-foreground 'diff-context nil) (set-face-foreground 'diff-file-header nil) (set-face-foreground 'diff-function nil) (set-face-background 'diff-header-face nil) (set-face-foreground 'diff-hunk-header nil) (set-face-foreground 'diff-index nil) (set-face-foreground 'diff-indicator-added nil) (set-face-foreground 'diff-indicator-changed nil) (set-face-foreground 'diff-indicator-removed nil) (set-face-foreground 'diff-nonexistent nil) ;(set-face-background 'diff-added-face "color-48") (set-face-foreground 'diff-added-face "color-48") ;(set-face-background 'diff-changed-face "color-190") (set-face-foreground 'diff-changed-face "color-190") ;(set-face-background 'diff-removed-face "color-88") (set-face-foreground 'diff-removed-face "color-88")
cvsViewerのadd,change,removeのデフォルトの色使いと合わせてみた。