From ebbf363baa74780359aa383ef632ab4dd4e68f48 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 10 Aug 2016 17:00:22 -0700 Subject: [PATCH] Use named-builder to build prefix-alternatives --- dotfiles/emacs.d/README.org | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 93a531be..d49f1ab1 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -499,7 +499,7 @@ Prefix alternatives is a macro that builds an interactive function that selects one of a collection of functions that are provided to the macro based on the value of the prefix argument. #+BEGIN_SRC emacs-lisp -(defmacro imalison:prefix-alternatives-lambda (&rest alternatives) +(defmacro imalison:prefix-alternatives-fn (&rest alternatives) `(lambda (arg) (interactive "p") (let ((function @@ -513,8 +513,7 @@ macro based on the value of the prefix argument. (setq current-prefix-arg nil) (call-interactively function)))) -(imalison:named-builder-builder imalison:prefix-alternatives - imalison:prefix-alternatives-lambda) +(imalison:named-builder imalison:prefix-alternatives) #+END_SRC *** Use Package Wrapper With Local Load Path Support #+BEGIN_SRC emacs-lisp