There are three ways to invoke Emacs nroff mode while working on the
AOLserver man page documentation:


1. Tell Emacs that files ending with the .n suffix are to be edited in
nroff-mode by placing this text in your .emacs file:

; Edit .n files in nroff mode. Files ending with a number
; as a suffix (e.g. Ns_Adp.3) are already recognized as
; nroff files by Emacs.
    (setq auto-mode-alist
          (cons
           '("\.n$" . nroff-mode)
           auto-mode-alist)
          )


2. Open the file in Emacs, then do an 'M-x nroff-mode'.


3. Place this as the first line of the man file:

    '\" -*- nroff -*- (Tells Emacs what major mode to use)


Selection 1. is the preferred method; use 2. if you really want to
change modes manually.


/s.


==============================================================
Scott S. Goodwin
Chief, Information Technology Section
96th Communications Group
Eglin AFB, FL

Reply via email to