;; -*- 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)))