I am trying to write a function which will perform a bookmark-jump but then reset the the bookmark line to the top of the screen. So far I have:
(defun foo ()
(interactive)
(bookmark-jump)
(evil-scroll-line-to-top nil)
)
(define-key evil-normal-state-map [f9] 'foo)
But hitting F9 gives this message. What am I doing wrong please?
bookmark-jump
needs abookmark
as argument: doC-h f bookmark-jump RET
to see its doc string.M-x bookmark-jump<Enter>
?M-x bookmark-jump
it asks me for a bookmark to jump to.call-interactively
for that as @Drew points out.