Skip to main content
Fix indentation
Source Link
wasamasa
  • 22.4k
  • 1
  • 70
  • 101

In my personal libraries, I also prefer to maintain a connection with Common Lisp idioms and syntax as much as possible, to avoid context switching. Of course, if I would develop public libraries I would try to avoid it. Common Lisp perspective seems not favoured by main Emacs developers, although I know a few representative ones that do favour cl-lib parlance.

In any case, I use el-get to manage the external packages. el-get allows to fecth directly from EmacsWiki. I have this in my init.el:

(el-get-bundle macro-utils)

Which nicely allows one to use with-gensyms, as you asked, and also once-only:

(defmacro double (x)
  (once-only (x)
    `(+ ,x ,x)))

In my personal libraries, I also prefer to maintain a connection with Common Lisp idioms and syntax as much as possible, to avoid context switching. Of course, if I would develop public libraries I would try to avoid it. Common Lisp perspective seems not favoured by main Emacs developers, although I know a few representative ones that do favour cl-lib parlance.

In any case, I use el-get to manage the external packages. el-get allows to fecth directly from EmacsWiki. I have this in my init.el:

(el-get-bundle macro-utils)

Which nicely allows one to use with-gensyms, as you asked, and also once-only:

(defmacro double (x)
(once-only (x)
  `(+ ,x ,x)))

In my personal libraries, I also prefer to maintain a connection with Common Lisp idioms and syntax as much as possible, to avoid context switching. Of course, if I would develop public libraries I would try to avoid it. Common Lisp perspective seems not favoured by main Emacs developers, although I know a few representative ones that do favour cl-lib parlance.

In any case, I use el-get to manage the external packages. el-get allows to fecth directly from EmacsWiki. I have this in my init.el:

(el-get-bundle macro-utils)

Which nicely allows one to use with-gensyms, as you asked, and also once-only:

(defmacro double (x)
  (once-only (x)
    `(+ ,x ,x)))
Source Link
gsl
  • 1.8k
  • 18
  • 36

In my personal libraries, I also prefer to maintain a connection with Common Lisp idioms and syntax as much as possible, to avoid context switching. Of course, if I would develop public libraries I would try to avoid it. Common Lisp perspective seems not favoured by main Emacs developers, although I know a few representative ones that do favour cl-lib parlance.

In any case, I use el-get to manage the external packages. el-get allows to fecth directly from EmacsWiki. I have this in my init.el:

(el-get-bundle macro-utils)

Which nicely allows one to use with-gensyms, as you asked, and also once-only:

(defmacro double (x)
(once-only (x)
  `(+ ,x ,x)))