diff options
author | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2019-06-26 16:48:12 +0100 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2019-06-26 17:19:40 +0100 |
commit | 3e3df1ef547ec330f1d8d582cd8f69e459e5384d (patch) | |
tree | ba51bf23779e2be2f4dd44cb928ff7d9ab7cad16 /init.el | |
parent | use web-mode for TT (diff) | |
download | emacs-3e3df1ef547ec330f1d8d582cd8f69e459e5384d.tar.gz emacs-3e3df1ef547ec330f1d8d582cd8f69e459e5384d.tar.bz2 emacs-3e3df1ef547ec330f1d8d582cd8f69e459e5384d.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
@@ -412,3 +412,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) |