Next: , Previous: , Up: Top   [Contents][Index]

4 Usage

Just when you thought format strings were unreadable, it’s going to get a whole lot crazier. With FoCus, you can not only create your own cryptic format directives, but you can also completely mess up the standard ones, which is where the fun really begins.

First of all, FoCus itself resides in a package called net.didierverna.focus. You can automatically nickname this package with the following function.

Function: nickname-package &optional NICKNAME

Add NICKNAME (:focus by default) to the :net.didierverna.focus package.

Using FoCus involves three steps: creating format tables, filling them with format directives and actually using them in calls to format or formatter.