13.2. Emacs

Install from editors/emacs or editors/xemacs.

Edit ~/.emacs, adding these lines:

(defun local-sgml-mode-hook ()
  (setq fill-column 70
	indent-tabs-mode nil
	next-line-add-newlines nil
	standard-indent 4
	sgml-indent-data t)
  (auto-fill-mode t)
  (setq sgml-catalog-files '("/usr/local/share/xml/catalog")))
(add-hook 'psgml-mode-hook #'local-psgml-mode-hook)

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.