stumpwm / stumpwm-contrib

Extension Modules for StumpWM
Other
228 stars 137 forks source link

** How to write a module *** General guidelines

An example =asd= file looks like:

+BEGIN_EXAMPLE

(asdf:defsystem #:swm-new-module :serial t :description "Describe swm-new-module here" :author "Guy Steele" :license "GPLv3" :depends-on (#:stumpwm) :components ((:file "package") (:file "swm-emacs"))) ; any other files you make go here

+END_EXAMPLE

A =package.lisp= looks like:

+BEGIN_EXAMPLE

(defpackage #:swm-new-module (:use #:cl :stumpwm))

+END_EXAMPLE

From here you can commence hacking. When you're ready, advertise it to the world!

[[http://www.xach.com/lisp/quickproject/][More docs here]]. ** Loading a module Loading a module can usually be done in your =~/.stumpwmrc= for a module =module-name= using:

+begin_src lisp

(load-module "module-name")

+end_src

Please see =README.org= files for each module for further details. Missing module dependencies, can be installed with:

+begin_src lisp

(ql:quickload "notify")

+end_src

Don't edit anything below this line, the script will blow it away

--

** Media