11. Scribe User Manual -- Editing Scribe Programs

11. Scribe User Manual -- Editing Scribe Programs

Browsing

Home: Scribe User Manual

Previous chapter: Scribe style files
Next chapter: Compiling Scribe programs

Editing Scribe Programs

11.1 Scribe Emacs mode

Chapters

1. Getting Started
2. Syntax
3. Standard Library
4. Hyperlinks and References
5. Index
6. Bibliography
7. Computer programs
8. Graphical User Interfaces
9. Customization
10. Scribe style files
11. Editing Scribe Programs
12. Compiling Scribe programs
13. Compiling Texi documents
14. Using Bibtex databases
15. Functions and Variables

Scribe

Home page:Scribe

Documentation:user
expert
styles

Scribe sources can be automatically generated from Texinfo by the scribeinfo compiler. They can also be typed in. For this task, it is highly recommended to use GNU Emacs or Xemacs. These editors provide parentheses matching and Scribe expressions handling.

11.1 Scribe Emacs mode

The Scribe distribution contains a fundamental mode dedicated to Scribe edition. This mode provides fontification and indentation of Scribe programs. In this manual, we present the three most important key bindings specific to this mode.

  • M-x describe-mode Describes the Scribe mode.
  • tab Indents the current line.
  • M-C-q Indents a whole Scribe expression.
In order to install the Scribe emacs mode, you need to:
  • Specify that when emacs is to edit a Scribe file it must switch to Scribe mode. For this, add the following expression to your .emacs file:

    (setq auto-mode-alist (cons '("\\.scr$" . scribe-mode) auto-mode-alist))

  • Specify that when the emacs Lisp scribe-mode function is needed it has to be loaded from the scribe.el file:

    (autoload 'scribe-mode "scribe.el" "Scribe mode." t)

The scribe.el file must in the path described by the Emacs Lisp load-path variable.

This page has been generated by Scribe.
Last update Wed Dec 18 09:23:02 2002