サイトマップ 更新履歴 ニュース Elispセクション 利用手引

FetchmailMode

fetchmail-mode.el by AlexShinn sets up basic syntax and fontification for editing your fetchmail ~/.fetchmailrc file. It’s included in the “contrib” section of the fetchmail dist, and also Lisp:fetchmail-mode.el.

Or from the author (a couple of lines smaller),

http://synthcode.com/emacs/fetchmail-mode.el

Configuration

Put fetchmail-mode.el in your load-path and add the following line to your .emacs file:

 (require 'fetchmailrc)

or better

 (autoload 'fetchmail-mode "fetchmail-mode.el" "Mode for editing .fetchmailrc files" t)

To use it with the fetchmail configurations file:

 (setq auto-mode-alist
       (append '(("\\.fetchmailrc$" . fetchmail-mode))
 	        auto-mode-alist))

(The auto-mode-alist regexp pattern "\..fetchmailrc$" in the .el file comments is a typo, it’s \\. to match a literal dot like “.fetchmailrc”.)


CategoryMailAddons | CategoryModes