Properly require tramp

This commit is contained in:
Eivind Fonn 2017-05-28 15:07:01 +02:00
parent 5397b6f01f
commit 5048aff9fa
1 changed files with 1 additions and 2 deletions

View File

@ -400,8 +400,7 @@ FILENAME is deleted using `spacemacs/delete-file' function.."
;; from magnars
(defun spacemacs/sudo-edit (&optional arg)
(interactive "P")
(eval-when-compile
(require 'tramp))
(require 'tramp)
(let ((fname (if (or arg (not buffer-file-name))
(read-file-name "File: ")
buffer-file-name)))