Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2015 05:29:34 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Noam Postavsky <npostavs@users.sourceforge.net>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: Mistake in Chapter 13.2. Editor Configuration - Emacs
Message-ID:  <alpine.BSF.2.20.1507120528510.37753@wonkity.com>
In-Reply-To: <CAM-tV-_AW-6yfQR3SnKGFP0_mUWfVO5eOYphnDo8PHKjtcFNJg@mail.gmail.com>
References:  <CAM-tV-_AW-6yfQR3SnKGFP0_mUWfVO5eOYphnDo8PHKjtcFNJg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Jul 2015, Noam Postavsky wrote:

> As seen on https://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/editor-config-emacs.html;
> 2015, July 11th.
>
> The config should look like this:
>
> (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)
>
> The "()" after "local-sgml-mode-hook" is especially important,
> otherwise the setq form is parsed as the argument list. The lambda in
> the add-hook was just redundant.

Updated, thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1507120528510.37753>