From 6fdd4582a7b1ac2f7274e47d87d312b0b593830d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 22 Jun 2016 15:22:58 -0700 Subject: [PATCH] Fix copy buffer file functions by using compose-2 --- dotfiles/emacs.d/README.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 47f7bd61..16193737 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -770,7 +770,7 @@ A macro for composing functions together to build an interactive command to copy (defmacro imalison:compose-copy-builder (name &rest funcs) `(imalison:named-build ,name imalison:make-interactive - (imalison:compose 'kill-new ,@funcs))) + (imalison:compose-2 0 kill-new ,@funcs))) #+END_SRC *** Copy portions of the buffer file name @@ -780,10 +780,11 @@ A macro for composing functions together to build an interactive command to copy (imalison:copy-buffer-file-path-builder imalison:copy-buffer-file-path-full) (imalison:copy-buffer-file-path-builder imalison:copy-buffer-file-name - 'file-name-nondirectory) + file-name-nondirectory) (imalison:copy-buffer-file-path-builder imalison:copy-buffer-file-path - 'projectile-make-relative-to-root - 'list) + car + projectile-make-relative-to-root + list) #+END_SRC *** Copy the current branch using magit #+BEGIN_SRC emacs-lisp