I googled for this with no success. im looking to "bookmark" a lisp code block so that it appears in the emacs/bookmark+ bookmark lists. for example i want to launch this lisp code when i launch a bookmark "xxz"
(defun xxz ()
"jump"
(interactive)
(bmkp-dired-jump "h.nyc" )
(org-narrow-to-subtree)
)
anyone know if this is possible at all?
bookmark-after-jump-hook
orbmkp-before-jump-hook
. You also havebmkp-jump-display-function
. And you can put predefined bookmark tag"bmkp-jump"
on any bookmark - give it any function as value - see Tags as Attributes. – Drew Oct 8 '16 at 23:08T v bmkp-jump RET (lambda () (org-narrow-to-subtree))
with no apparent success. is that correct syntax? – zeltak Oct 10 '16 at 12:31(bmkp-get-tag-value BOOKMARK "bmkp-jump")
tell you for yourBOOKMARK
? Be sure that the right buffer is really current when you invokeorg-narrow-to-subtree
(I know nothing about that function, but its doc talks about the current buffer). – Drew Oct 10 '16 at 14:00Debugger entered--Lisp error: (void-variable h\.nyc) (bmkp-get-tag-value h\.nyc "bmkp-jump") eval((bmkp-get-tag-value h\.nyc "bmkp-jump") nil) eval-expression((bmkp-get-tag-value h\.nyc "bmkp-jump") nil) funcall-interactively(eval-expression (bmkp-get-tag-value h\.nyc "bmkp-jump") nil) call-interactively(eval-expression nil nil) command-execute(eval-expression)
– zeltak Oct 11 '16 at 6:41