Skip to content

Commit

Permalink
[emacs support] Keep remote directories out of load-path
Browse files Browse the repository at this point in the history
That can lead to frustratingly persistent attempts to reconnect to remote servers you're done with!
  • Loading branch information
Dave Abrahams authored Mar 22, 2017
1 parent 655b6e3 commit f46a5f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
(eval let*
((x (dir-locals-find-file default-directory))
(this-directory (if (listp x) (car x) (file-name-directory x))))
(unless (featurep 'swift-project-settings)
(unless (or (featurep 'swift-project-settings)
(tramp-tramp-file-p this-directory))
(add-to-list 'load-path
(concat this-directory "utils")
:append)
Expand Down

0 comments on commit f46a5f9

Please sign in to comment.