From cbdd65522df27de29dde9ada9b0da825f4f9e59a Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Wed, 29 Oct 2014 15:25:08 +0100 Subject: Set TMPDIR explicitly on OS X TMPDIR defaults to a long path on OS X. This causes issues with ssh ControlPath when using Tramp with long hostnames. Fix it by setting TMPDIR to /tmp. --- lisp/init-mac.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp/init-mac.el') diff --git a/lisp/init-mac.el b/lisp/init-mac.el index 3e41a5f..c3b173b 100644 --- a/lisp/init-mac.el +++ b/lisp/init-mac.el @@ -37,4 +37,8 @@ (when (executable-find "gls") (setq insert-directory-program "gls")) +;; workaround for long tmpdir +;; https://trac.macports.org/ticket/29794 +(setenv "TMPDIR" (file-name-as-directory "/tmp")) + (provide 'init-mac) -- cgit v1.2.3