Next: , Previous: , Up: Other Considerations   [Contents][Index]


7.1 Configuration

Some aspects of Declt’s behavior can be configured before the library system is actually loaded. Declt stores its user-level configuration (along with some other setup parameters) in another ASDF system called ‘net.didierverna.declt.setup’ (and the eponym package). In order to configure the library (I repeat, prior to loading it), you will typically do something like this:

(require "asdf")
(asdf:load-system :net.didierverna.declt.setup)
(net.didierverna.declt.setup:configure <option> <value>)
Function: configure KEY VALUE

Set KEY to VALUE in the current Declt configuration.

Out of curiosity, you can also inquire the current configuration for specific options with the following function.

Function: configuration KEY

Return KEY’s value in the current Declt configuration.

Currently, the following options are provided.

:swank-eval-in-emacs

This option is only useful if you use Slime, and mostly if you plan on hacking Declt itself. The library provides indentation information for some of its functions directly embedded in the code. This information can be automatically transmitted to Emacs when the ASDF system is loaded if you set this option to t. However, note that for this to work, the Slime variable slime-enable-evaluate-in-emacs must also be set to t in your Emacs session. If you’re interested to know how this process works, I have described it in this blog entry.