mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
44 lines
1.4 KiB
EmacsLisp
44 lines
1.4 KiB
EmacsLisp
;; *** tramp mode
|
|
|
|
;; Edit remote files, one of the best things in emacs. I use it every day heavily.
|
|
|
|
;; Sample: C-x-f /$host:/$file ($host as of .ssh/config or direct, $file including completion)
|
|
|
|
;; doku: [[http://www.gnu.org/software/tramp/][gnu.org]]
|
|
;; use tramp version, see:
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39399
|
|
|
|
;; (setq tramppkg (expand-file-name "el-get/tramp" tvd-config-dir))
|
|
|
|
;; doesnt work:
|
|
;; (el-get-bundle tramp
|
|
;; :type git
|
|
;; :url "https://git.savannah.gnu.org/git/tramp.git"
|
|
;; ;; tramp-loaddefs.el uses `tramp-verion' before it's defined,
|
|
;; ;; work around this by loading trampver.el first.
|
|
;; :autoloads ("trampver.el" "tramp-loaddefs.el")
|
|
;; :checkout "ELPA-2.6.0.3")
|
|
|
|
;;; Tramp version fix
|
|
;; for now I have to install tramp from elpa manually, because
|
|
;; use-package doesn't do it, since it's already loaded on startup
|
|
;; (because enabled by default).
|
|
;;
|
|
;; The el-get version above doesn't work as well, it leads to mixed
|
|
;; loading of system tramp and git tramp.
|
|
;;
|
|
;; FIXME: find out how to force use-package to install and use elpa tramp!
|
|
(setq tramppkg (expand-file-name "tramp-2.6.0.3" package-user-dir))
|
|
|
|
(use-package tramp
|
|
:load-path tramppkg
|
|
:ensure t
|
|
:config
|
|
(setq tramp-default-method "ssh"
|
|
tramp-default-user nil
|
|
tramp-verbose 9
|
|
;;ido-enable-tramp-completion t
|
|
))
|
|
|
|
;; see also backup section in system.el
|