Hello, i use dvc with hg and i am very happy with it.
When i use dvc-bookmarks i want to be able to open project with
C-o like emacs bookmarks in other-window.
So i modify `dvc-bookmarks-mode' and add this line:
(run-hooks dvc-bookmarks-mode-hook)
And i add to .emacs:
--8<---------------cut here---------------start------------->8---
(defun dvc-bookmarks-goto-other-window ()
(interactive)
(let ((local-tree (dvc-bookmarks-current-value 'local-tree)))
(if local-tree
(find-file-other-window local-tree)
(message "No local-tree defined for this bookmark entry."))))
(defun tv-open-dvc-bm-ow ()
(interactive)
(define-key dvc-bookmarks-mode-map (kbd "C-o")
'dvc-bookmarks-goto-other-window))
(add-hook 'dvc-bookmarks-mode-hook 'tv-open-dvc-bm-ow)
--8<---------------cut here---------------end--------------->8---
Thats work fine.
But every time i pull another version of dvc i have to do the changes.
May be run-hooks can be added if you think that is correct of course.
Or may be there is another way to do that without modifying dvc-bookmark.
--
A + Thierry
Pub key: http://pgp.mit.edu
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev