diff options
Diffstat (limited to 'bookmark-conf.el')
-rw-r--r-- | bookmark-conf.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bookmark-conf.el b/bookmark-conf.el index eddb3d5..04973ba 100644 --- a/bookmark-conf.el +++ b/bookmark-conf.el @@ -473,5 +473,18 @@ Below are listed three possible scenarios: (define-key ctl-x-r-map (vector ?s) #'durand-save-bookmark-or-desktop) +;;; Jump to bookmark in a new tab + +(defun durand-jump-bookmark-new-tab (bookmark) + "Jump to BOOKMARK similar to `bookmark-jump'. +But this always opens the bookmark in a new tab." + (interactive + (list (bookmark-completing-read "Jump to bookmark" + bookmark-current-bookmark))) + (bookmark-jump bookmark #'switch-to-buffer-other-tab)) + +(define-key tab-prefix-map (vector ?B) + #'durand-jump-bookmark-new-tab) + (provide 'bookmark-conf) ;;; bookmark-conf.el ends here |