From 3de354c73dcf5174493ea17b2b51d22cbf618de9 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Tue, 9 Aug 2016 21:23:59 +0100 Subject: [PATCH] nixos-manual(emacs): Add a section about configuring DocBook 5 schemas --- nixos/modules/services/editors/emacs.xml | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/nixos/modules/services/editors/emacs.xml b/nixos/modules/services/editors/emacs.xml index 28cdd60fce29..e0dec52fb4d7 100644 --- a/nixos/modules/services/editors/emacs.xml +++ b/nixos/modules/services/editors/emacs.xml @@ -574,6 +574,55 @@ services.emacs.install = true; <RET> nixos-rebuild <RET>. + +
+ Editing DocBook 5 XML Documents + + Emacs includes nXML, + a major-mode for validating and editing XML documents. + When editing DocBook 5.0 documents, such as + this one, + nXML needs to be configured with the relevant schema, which is + not included. + + + + To install the DocBook 5.0 schemas, either add + pkgs.docbook5 to + environment.systemPackages (NixOS), or run + nix-env -i pkgs.docbook5 + (Nix). + + + + Then customize the variable rng-schema-locating-files to include ~/.emacs.d/schemas.xml and put the following text into that file: + + nXML Schema Configuration (<filename>~/.emacs.d/schemas.xml</filename>) + + + + + + + +]]> + + + +