diff options
author | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2019-06-26 16:48:12 +0100 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2020-09-28 10:51:40 +0100 |
commit | 76660869296e6662f78ca8785276bea48fae5522 (patch) | |
tree | f1b32a6fae2cf93197a862b0a31171d1548d8b7c /init.el | |
parent | use web-mode for TT (diff) | |
download | emacs-76660869296e6662f78ca8785276bea48fae5522.tar.gz emacs-76660869296e6662f78ca8785276bea48fae5522.tar.bz2 emacs-76660869296e6662f78ca8785276bea48fae5522.zip |
tramp autocomplete for go2 and vagrant (cached)
Diffstat (limited to 'init.el')
-rwxr-xr-x | init.el | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |