Date: Sun, 12 Jul 2015 11:28:45 +0000 (UTC) From: Warren Block <wblock@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46952 - head/en_US.ISO8859-1/books/fdp-primer/editor-config Message-ID: <201507121128.t6CBSjrL037052@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wblock Date: Sun Jul 12 11:28:44 2015 New Revision: 46952 URL: https://svnweb.freebsd.org/changeset/doc/46952 Log: Update emacs configuration. Submitted by: Noam Postavsky <npostavs@users.sourceforge.net> Modified: head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml Modified: head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml Sun Jul 12 03:54:50 2015 (r46951) +++ head/en_US.ISO8859-1/books/fdp-primer/editor-config/chapter.xml Sun Jul 12 11:28:44 2015 (r46952) @@ -108,16 +108,15 @@ endfunction " Set_SGML()</programlisting <para>Edit <filename>~/.emacs</filename>, adding these lines:</para> - <programlisting> (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 - '(lambda () (local-psgml-mode-hook)))</programlisting> + <programlisting>(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)</programlisting> </sect1> <sect1 xml:id="editor-config-nano">
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507121128.t6CBSjrL037052>