With a little side of applesauce...

Tuesday, January 30, 2007

emacs power-macros.el

http://www.blackie.dk/emacs/power-macros.el

It is discussed here:

http://linuxgazette.net/issue47/pedersen.html

And was written by Jesper Kjaer Pedersen:

http://www.blackie.dk/emacs/

Since I don’t have power-macros.el on every machine, I like to test for the file before requiring it:

;; load local elisp libraries
(setq load-path (cons “~/elisp” load-path))

;; load power-macros if available

(let ((library-to-load “~/elisp/power-macros.el”))
(if (file-exists-p library-to-load)
(load-file library-to-load)
)

(if (file-exists-p library-to-load)
(require ‘power-macros)
)

)

No comments: