[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

18.1 Hacking: General Advice

  1. Pay attention to file names and contents. If you’re making changes to mode-line related code, don’t put it in ‘core.lisp’. If you’re introducing some completely new featureset, consider putting all of the new code in a new file.
  2. Does a command need to be user-visible (“interactive”) or is it just called by other commands?
  3. Note that all commands defined using the defcommand syntax are available both to be called with C-t ; and from within other lisp programs, as though they had been defun-ned (which, in fact, they have).
  4. Any code that depends on external libraries or programs that some users might not have installed should be packaged as a module and placed in the ‘*data-dir*/modules/’ directory.
  5. Don’t be afraid to submit your patches to the StumpWM mailing list! It may not immediately make it into the official git repository, but individual users might find it useful and apply it to their own setup, or might be willing to offer suggestions on how to improve the code.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on February 2, 2024 using texi2html 1.82.