diff options
author | Martin Polden <martin.polden@gmail.com> | 2014-10-29 15:25:08 +0100 |
---|---|---|
committer | Martin Polden <martin.polden@gmail.com> | 2014-10-29 15:25:08 +0100 |
commit | cbdd65522df27de29dde9ada9b0da825f4f9e59a (patch) | |
tree | dba4510366beede4dfc166d9508171f5399b98e2 /lisp/init-mac.el | |
parent | a52cc9f965d6ea4c85677069c5184f05321ae982 (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.el | 4 |
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) |