From 76660869296e6662f78ca8785276bea48fae5522 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 26 Jun 2019 16:48:12 +0100 Subject: tramp autocomplete for go2 and vagrant (cached) --- init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 6953256..4ef2d7a 100755 --- a/init.el +++ b/init.el @@ -418,3 +418,15 @@ (add-to-list 'auto-mode-alist '("\\.tt$" . web-mode)) +(require 'go2-tramp) +(require 'vagrant-tramp) + +(defun dakkar-cache-vagrant (orig &rest args) + (let ((repo (pcache-repository "vagrant-tramp")) + (key 'all-boxes)) + (if (pcache-has repo key) + (pcache-get repo key) + (let ((value (apply orig args))) + (pcache-put repo key value 300) + value)))) +(advice-add 'vagrant-tramp--all-boxes :around #'dakkar-cache-vagrant) -- cgit v1.2.3