Elisp Application
  site-lisp
  load-path
  subdirs.el
  install
    site-lisp
    by appl.
Semi
  apel
  flim
  semi
Edit
  ediff
  autoinsert
  outline mode
    cvstree
    ~/.emacs
  kill-summary
  keisen
  二進編集 hexl
    編集
    連続入力
    移動
Programming
  CC-mode
    c-mode
    style
  pbf
  pcl-cvs
  起動方法
    checkout 前
    checkout 後
  使い方
  rcs
  JDEE
  gdb
MUA
  wl
  wl + namazu
  mu-cite
      設置
  Face
    最近の作成方法
  procmail
TeX
  AUC TeX
    install
    tex-jp.el
    customize
    doc/tex-ref.tex
  YaTeX
Web
  w3
  Emacs-w3m
  wiki
  php-mode
  YaHtml
  日記 hns
    .emacs の設定例
Text
  text-adjust
辞書
  sdic
  lookup
日本語入力(総)
  日本語入力(各)
    変換機構
    UI(人間側)
    統合 Elisp
  tamago
    redhat 7.3
  tamago versions
    個別無分類情報
    問題
      jserver
  Wnn
  Canna
  Sj3
  Anthy
  FreeWnn install
    NetBSD/pkgsrc
    configure;make
  FreeWnn
    起動
    wnnstat
  辞書
  pubdic に追加
      ipadic
    ipadic
    r-dic
    Wnn Parameter
  tcode
    tcode(URL)
IRC
  liece
  irchat
  riece
遠隔操作
  tramp
Video/Audio
  Monk
Others
  Calendar

emacs-21 | dot.emacs | application | packages | 始め方 | emacs-20 | らくらく入門 | 参照カード

procmail

procmail-mode.el --- procmailrc を編集する時に色を付けるには...

CVS Repository
(以下では、自分で分類する Folder を hardcode しているので --- もし使っていただけるなら --- 適宜変更して下さい)
.. それよりも .. 誰か添削して下さい .. makoto at ki.nu

;; add -*- procmail -*- line on top of ~/.procmailrc
;; to activate automatically 
(defun procmail-mode ()
  "Mode for highlighting procmailrc files"
  (interactive)
  (setq mode-name "Procmail"
	major-mode 'procmail)

  (require 'font-lock)
  (make-local-variable 'font-lock-defaults)
  (setq procmail-font-lock-keywords
	(list '("#.*"
		. font-lock-comment-face)
	      '("Return-Path:"       
		. font-lock-type-face)         ; green
	      '("^[\t ]*:.*"                
		. font-lock-function-name-face) ; blue ?
	      '("[A-Z_]+=.*"
;             '("[A-Za-z_]+=.*"
		. font-lock-keyword-face)
	      '("^[\t ]*\\*.*"
		. font-lock-doc-face)          ; light brown
;             '("\$[A-Za-z0-9_]+"       
	      '("^[\t ]*ml\/"
		. font-lock-builtin-face)      ; violet
	      '("^[\t ]*from\/"
		. font-lock-reference-face)
	      '("^[\t ]*junk\/"
		. font-lock-constant-face)      ; turquoize
	      '("^[\t ]*dm/"
		. font-lock-warning-face)       ; red
	      '("^[\t ]*not-found/"
		. font-lock-variable-name-face) ; orange
	      '("^[\t ]*to/"
		. font-lock-string-face)        ; light brown
	      ))
  (setq font-lock-defaults '(procmail-font-lock-keywords t))
  (font-lock-mode t) )
この画面は Jeedosaquin によって表示しています。
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08