From owner-freebsd-doc@freebsd.org Sun Jul 12 11:29:38 2015 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63D46998893 for ; Sun, 12 Jul 2015 11:29:38 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 148331BDD for ; Sun, 12 Jul 2015 11:29:37 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t6CBTZlR048047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 12 Jul 2015 05:29:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t6CBTYLr048044; Sun, 12 Jul 2015 05:29:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 12 Jul 2015 05:29:34 -0600 (MDT) From: Warren Block To: Noam Postavsky cc: freebsd-doc@FreeBSD.org Subject: Re: Mistake in Chapter 13.2. Editor Configuration - Emacs In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 12 Jul 2015 05:29:35 -0600 (MDT) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 11:29:38 -0000 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!