From owner-freebsd-doc@freebsd.org Sun Jul 12 04:00:42 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 83CD3997282 for ; Sun, 12 Jul 2015 04:00:42 +0000 (UTC) (envelope-from npostavs@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 228C71E33 for ; Sun, 12 Jul 2015 04:00:42 +0000 (UTC) (envelope-from npostavs@gmail.com) Received: by wibud3 with SMTP id ud3so4308950wib.1 for ; Sat, 11 Jul 2015 21:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=X0vuN+kZFxHbxPHh2ErFiVcYemh1GwFizkeZ+Hc1PF0=; b=FjSR1v/HgcmO0Xi77S4n8wdu/TyKgcfAIoLmOxGodkMH26G2ZwmzHLyUbSbio7RfPv zK0+KyKG7VylVfz2Wk7Z1nDs8X+xsyDLiPR56gIUfWf7+M4QHFZgXR8m+R4rdQlRtOvm bnaWZ3fGPSioS10qfK+vF4hnyojYjFDT39swKcFt8Y1jTu13Ep/2dnBEv+88DnFet4rw IVV0IccdArFpiSG3n6mN54r/vAs+QZ29MIP0vMqh1byav6EMFXqACBycLX9xswp0U2UU g+ktj+1z+CLfFeDUWemIDApOkMPjAAD3N4MN88Czv+8ktfSFWUXeUY9aFUvHbceWpYDw +kuQ== MIME-Version: 1.0 X-Received: by 10.194.48.8 with SMTP id h8mr49729011wjn.82.1436673639856; Sat, 11 Jul 2015 21:00:39 -0700 (PDT) Sender: npostavs@gmail.com Received: by 10.28.146.11 with HTTP; Sat, 11 Jul 2015 21:00:39 -0700 (PDT) Date: Sun, 12 Jul 2015 00:00:39 -0400 X-Google-Sender-Auth: S-TOFCUtciilD7j9sGfH4IkHmBM Message-ID: Subject: Mistake in Chapter 13.2. Editor Configuration - Emacs From: Noam Postavsky To: freebsd-doc@FreeBSD.org Content-Type: text/plain; charset=UTF-8 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 04:00:42 -0000 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.