bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

expand the pattern for nroff files in emacs-20.7


From: Assar Westerlund
Subject: expand the pattern for nroff files in emacs-20.7
Date: 24 Jul 2001 18:34:18 +0200
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

Hello.

In emacs 20.7, only files ending in .[1-8] are automatically put into
nroff mode.  This is not as useful as it could be, since the various
BSDs have created a section 9 for man-pages.  Here's a simple diff
that makes emacs recognize these files.

/assar

2001-07-24  Assar Westerlund  <address@hidden>

        * files.el (auto-mode-alist): also allow man pages to end in .9

*** files.el~   Tue May 23 13:17:39 2000
--- files.el    Tue Jul 24 18:33:15 2001
***************
*** 1292,1298 ****
  ;;; The following should come after the ChangeLog pattern
  ;;; for the sake of ChangeLog.1, etc.
  ;;; and after the .scm.[0-9] pattern too.
!     ("\\.[12345678]\\'" . nroff-mode)
      ("\\.TeX\\'" . tex-mode)
      ("\\.sty\\'" . latex-mode)
      ("\\.cls\\'" . latex-mode)                ;LaTeX 2e class
--- 1292,1298 ----
  ;;; The following should come after the ChangeLog pattern
  ;;; for the sake of ChangeLog.1, etc.
  ;;; and after the .scm.[0-9] pattern too.
!     ("\\.[1-9]\\'" . nroff-mode)
      ("\\.TeX\\'" . tex-mode)
      ("\\.sty\\'" . latex-mode)
      ("\\.cls\\'" . latex-mode)                ;LaTeX 2e class



reply via email to

[Prev in Thread] Current Thread [Next in Thread]