OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Configure Emacs to autocomplete the tags


Hi Dave,

Really I got scared:^) with so many configuration commands.

I'm a simple user of Docbook to edit the pages to my site www.c2o.pro.br

But I don't know the configuration detailsof Docbook tools.

I will test the Markus's suggestion to use the .emacs file of my old installation with squeeze.

Thank you,
Markos

Em 12-02-2016 17:12, Dave Pawson escreveu:
Yes - but it's such a hard task for the first time Markus?
Especially if you're new to it all.

(Aside) I'm still sad that James Clarks nxml-mode won't run
and we're left with the 'proper' one, which is basically
html

regards

On 12 February 2016 at 16:59, Markus Hoenicka
<markus.hoenicka@mhoenicka.de> wrote:
On 2016-02-12 16:51 Dave Pawson was heard to say:
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
)

I somehow assumed that the OP would reuse his .emacs which apparently had
worked in a previous installation. But you may be right, he'll have to add
this stuff if he started from scratch. I prefer to keep backups of my
.emacses to avoid this toil.

regards,
Markus
--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]