summaryrefslogtreecommitdiffstats
path: root/lisp/init-mac.el
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2014-10-29 15:25:08 +0100
committerMartin Polden <martin.polden@gmail.com>2014-10-29 15:25:08 +0100
commitcbdd65522df27de29dde9ada9b0da825f4f9e59a (patch)
treedba4510366beede4dfc166d9508171f5399b98e2 /lisp/init-mac.el
parenta52cc9f965d6ea4c85677069c5184f05321ae982 (diff)
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.
Diffstat (limited to 'lisp/init-mac.el')
-rw-r--r--lisp/init-mac.el4
1 files changed, 4 insertions, 0 deletions
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)