You'll need to tell emacs (nxml-mode)
1. Where your schema-locating file is
(setq rng-schema-locating-files '("/sgml/schemas.xml"))
2. In that file, where to find the docbook *(rnc) schema
<typeId id="DocBook"
uri="docbook/v5/rng/docbookxi.rnc"/>
<documentElement localName="book"
uri="/sgml/docbook/v5/rng/docbookxi.rnc"/>
etc
3. What associations to make (e.g. the root elements you'll be using)
(setq auto-mode-alist
(append
(list
'("\\.xml\\'" . nxml-mode)
etc
(defun bind-nxml-mode-keys ()
(define-key nxml-mode-map (kbd "<C-return>") 'completion-at-point)
;; add further customizations here
)
On 12 February 2016 at 14:40, Markus Hoenicka
<[email protected]> wrote:
> On 2016-02-12 13:29 Markos was heard to say:
>
> Hi,
>
> I just installed Debian Jessie and installed the packages to use DocBook
> with Emacs:
>
> bash# apt-get install docbook-xsl xsltproc
>
> bash# apt-get install emacs
>
>
> What I need to do to for Emacs to autocomplete the tags.
>
> This feature worked in Squeeze.
>
> Any tip?
>
> Thanks,
> Markos
>
> Hi,
>
> in order to get autocompletion, Emacs' nxml-mode needs a DocBook Schema. You
> installed the stylesheets and an xslt processor but no schema. See if
> installing docbook5-xml suffices (some extra steps may be needed).
>
> regards,
>
> Markus
>
>
>
> --
> Markus Hoenicka
> http://www.mhoenicka.de
> AQ score 38
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]