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

Scribe Emacs mode


Chapters

Getting Started
Syntax
Standard Library
Hyperlinks and References
Index
Bibliography
Computer programs
Graphical User Interfaces
Customization
Scribe style files
Editing Scribe Programs
Compiling Scribe programs
Compiling Texi documents
Using Bibtex databases
Functions and Variables


Scribe

Home page:Scribe

Documentation:user
expert


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
Scribe page is generated by scribeinfo.
Last update Sun Feb 17 04:35:07 2002