Previous: , Up: Exported definitions   [Contents][Index]


6.1.3 Functions

Function: configuration KEY

Return KEY’s value in the current FoCus configuration.

Package

net.didierverna.focus.setup

Source

setup (Lisp file)

Function: configure KEY VALUE

Set KEY to VALUE in the current FoCus configuration.

Package

net.didierverna.focus.setup

Source

setup (Lisp file)

Function: make-format-table &optional INITIALLY &aux TABLE MAPPINGS

Create and return a new format table.
The table may be INITIALLY :standard (the default), :standard-upcase, :standard-downcase or :blank.

Package

net.didierverna.focus

Source

table (Lisp file)

Function: nickname-package &optional NICKNAME

Add NICKNAME (:FOCUS by default) to the :NET.DIDIERVERNA.FOCUS package.

Package

net.didierverna.focus

Source

meta (Lisp file)

Function: register-format-table TABLE NAME &optional FORCE

Register TABLE under NAME (a symbol) and return it.
FORCE means overwrite an already existing registration under that
name. Otherwise (the default), throw a TABLE-COLLISION error.

Package

net.didierverna.focus

Source

table (Lisp file)

Function: set-format-directive CHAR &key STANDARD (FUNCTION FUNCTION-OR-NAME) BOTH-CASE FORCE (TABLE TABLE-OR-NAME) &aux TABLE

Set a ~CHAR directive in TABLE.
- TABLE (the current format table by default) may be a table or a table name. - When BOTH-CASE (the default), operate on both case versions of CHAR.
- Attempting to override an existing directive throws a TABLE-DIRECTIVE-COLLISION error, unless FORCE is non-nil.

The operation to perform is as follows:
- If FUNCTION is provided (either a function or a function name), associate CHAR with it.
- If STANDARD is provided, associate CHAR with the standard directive denoted by STANDARD character (case does not matter).
- Otherwise, remove the ~CHAR directive from TABLE.

Package

net.didierverna.focus

Source

table (Lisp file)

Function: setup-flv

Autodetect support for file-local variables.
Update FoCus configuration and *FEATURES* accordingly.

Package

net.didierverna.focus.setup

Source

setup (Lisp file)

Function: unregister-format-table NAME

Unregister NAMEd table.

Package

net.didierverna.focus

Source

table (Lisp file)

Function: version &optional TYPE

Return the current version of FoCus.
TYPE can be one of :number, :short or :long.

A version number is computed as major*10000 + minor*100 + patchlevel, leaving two digits for each level. Alpha, beta and rc status are ignored in version numbers.

A short version is something like 1.3{a,b,rc}4, or 1.3.4 for patchlevel. Alpha, beta or rc levels start at 1. Patchlevels start at 0 but are ignored
in the output, so that 1.3.0 appears as just 1.3.

A long version is something like
1.3 {alpha,beta,release candidate,patchlevel} 4 "Kokyu Ho". As for
the short version, a patchlevel of 0 is ignored in the output.

Package

net.didierverna.focus.setup

Source

setup (Lisp file)


Previous: , Up: Exported definitions   [Contents][Index]