Elisp (define ...)

TorgoX on 2006-05-03T10:52:31

Dear Log,

For fun in elisp:

(defmacro define (what &rest rest)
"Scheme-like alias to defvar/defun"
(if (consp what)
`(defun ,(car what) ,(cdr what) ,@rest)
`(defvar ,what ,@rest)))

I'M LEARNDING THE EMACS-LISP!