svn commit: r46952 - head/en_US.ISO8859-1/books/fdp-primer/editor-config
Warren Block <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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"> _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-doc-all To unsubscribe, send any mail to "[email protected]"