tools/magit: re-enable magit-todos over tramp

Reverts 9ab49be. TRAMP support was added in
alphapapa/magit-todos@a80dace
This commit is contained in:
Henrik Lissner 2019-09-07 14:41:53 -04:00
parent 8d50280168
commit 70c60e6583
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -106,12 +106,6 @@ ensure it is built when we actually use Forge."
:config :config
(setq magit-todos-keyword-suffix "\\(?:([^)]+)\\)?:?") ; make colon optional (setq magit-todos-keyword-suffix "\\(?:([^)]+)\\)?:?") ; make colon optional
(define-key magit-todos-section-map "j" nil) (define-key magit-todos-section-map "j" nil)
;; magit-todos fails to list TODOs over TRAMP (and instead, tries to list all
;; TODOs in your HOME), so we disable it on remotes.
(defadvice! +magit--disable-todos-over-tramp-a (orig-fn)
:around #'magit-todos--insert-todos
(unless (file-remote-p default-directory)
(funcall orig-fn)))
;; Warns that jT isn't bound. Well, yeah, you don't need to tell me, that was ;; Warns that jT isn't bound. Well, yeah, you don't need to tell me, that was
;; on purpose ya goose. ;; on purpose ya goose.
(advice-add #'magit-todos-mode :around #'doom-shut-up-a) (advice-add #'magit-todos-mode :around #'doom-shut-up-a)