Sawfish mode

From WikEmacs
Revision as of 01:21, 6 November 2012 by Xfq (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sawfish is a window manager that can be extended using a Lisp dialect. See

sawfish.el provides a major mode "sawfish-mode" to edit Sawfish source lisp files. There, you can use `C-x C-e' to run `sawfish-eval-last-sexp', just like `eval-last-sexp' of elisp modes.

From Sawfish-1.7.0, it is included in the Sawfish window manager, and the above link points to the latest version. It was originally written by Dave Pearson, but currently maintained by Sawfish community.

Example ~/.sawfish/rc can be like:

(setq user-apps-menu
      '(("Terminal" (system "terminal &"))
	("Root" (system "root &"))
	("Emacs 24.2" (system "emacs-24.2 &"))
	("XEmacs 21.5" (system "xemacs-21.5.32 &"))
	("Conkeror" (system "conkeror &"))
	("Galeon" (system "galeon &"))
	("xchat" (system "xchat &"))
	("The GIMP" (system "gimp &"))
	("XFIG" (system "xfig &"))))

Editing these lines and hitting `C-x C-e' I can change the apps-menu on the fly.

For more Sawfish code, check the Sawfish Wiki.