svn commit: r46952 - head/en_US.ISO8859-1/books/fdp-primer/editor-config
Warren Block
wblock at FreeBSD.org
Sun Jul 12 11:28:45 UTC 2015
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 at 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">
More information about the svn-doc-head
mailing list