6 Hemlock Variables

  • 6.1 Variable Names
  • 6.2 Variable Functions
  • 6.3 Hooks
  • Hemlock implements a system of variables separate from normal Lisp variables for the following reasons: [annotate]

    1. Hemlock has different scoping rules which are useful in an editor. Hemlock variables can be local to a buffer (page 3) or a mode (page 8). [annotate]
    2. Hemlock variables have hooks (page 6.3), lists of functions called when someone sets the variable. See variable-value for the arguments Hemlock passes to these hook functions. [annotate]
    3. There is a database of variable names and documentation which makes it easier to find out what variables exist and what their values mean. [annotate]