Nico Golde <[EMAIL PROTECTED]> writes:
>
> I'm not going to autoload

You should put an autoload so M-x fetchmail-mode works, but if you mean
auto-mode-alist then I guess that could be optional.  The code seems
modest, even minimal, so enabled by default wouldn't take you into
anything really weird.  Possible startup file below; comment out the
auto-mode-alist if you decide against it.

;; -*- mode: emacs-lisp -*-

(if (not (file-exists-p "/usr/share/emacs/site-lisp/fetchmail-mode.el"))
    (message "fetchmail removed but not purged, skipping setup")

  ;; the following as recommended in the fetchmail-mode.el comments
  (autoload 'fetchmail-mode "fetchmail-mode"
    "Mode for editing .fetchmailrc files" t)

  ;; the following adapted from what fetchmail-mode.el recommends,
  ;; - its pattern "\..fetchmailrc" is a typo for "\\." matching a literal
  ;;   dot
  ;; - and in a string match you normally want \' for end-of-string instead
  ;;   of $ which also matches a newline
  (add-to-list 'auto-mode-alist '("\\.fetchmailrc\\'" . fetchmail-mode)))

Reply via email to