From 59962906769e6361a6fb370a642d4a5c48ea10be Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 19 Apr 2024 21:19:41 +0200 Subject: [PATCH] nixos/emacs: remove docbook section in emacs documentation Since with the completion of the docbook migration) it seems unclear what relevance editing xml in generall and docbook in particular with Emacs still has to NixOS at all, and people interested in the topic will presumably look to other resources elsewhere (e.g. to the nXML mode's actual documenation). --- nixos/modules/services/editors/emacs.md | 41 ------------------------- 1 file changed, 41 deletions(-) diff --git a/nixos/modules/services/editors/emacs.md b/nixos/modules/services/editors/emacs.md index 885f927422bd..da1028675155 100644 --- a/nixos/modules/services/editors/emacs.md +++ b/nixos/modules/services/editors/emacs.md @@ -366,44 +366,3 @@ convenient if you regularly edit Nix files. You can use `woman` to get completion of all available man pages. For example, type `M-x woman nixos-rebuild .` -### Editing DocBook 5 XML Documents {#sec-emacs-docbook-xml} - -Emacs includes -[nXML](https://www.gnu.org/software/emacs/manual/html_node/nxml-mode/Introduction.html), -a major-mode for validating and editing XML documents. When editing DocBook -5.0 documents, such as [this one](#book-nixos-manual), -nXML needs to be configured with the relevant schema, which is not -included. - -To install the DocBook 5.0 schemas, either add -{var}`pkgs.docbook5` to [](#opt-environment.systemPackages) -([NixOS](#sec-declarative-package-mgmt)), or run -`nix-env -f '' -iA docbook5` -([Nix](#sec-ad-hoc-packages)). - -Then customize the variable {var}`rng-schema-locating-files` to -include {file}`~/.emacs.d/schemas.xml` and put the following -text into that file: -::: {.example #ex-emacs-docbook-xml} -### nXML Schema Configuration (`~/.emacs.d/schemas.xml`) - -```xml - - - - - - - -``` -:::