summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-12-13 13:31:20 -0500
committerKyle Meyer <kyle@kyleam.com>2013-12-13 13:33:20 -0500
commit697c602854326e8e230032aebb6ed913e8914c44 (patch)
treed3a67a37411c90891b6ea2c5005fcd6ebd6f211c /init
parentbf0fd32caa22601fa856ae8c7878dc2e856744ac (diff)
downloademacs.d-697c602854326e8e230032aebb6ed913e8914c44.tar.gz
Set default directory before mail sync
Otherwise, offlineimap may fail if I'm in a directory that has python files with conflicting names
Diffstat (limited to 'init')
-rw-r--r--init/km-gnus.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/km-gnus.el b/init/km-gnus.el
index 8e22e28..077201d 100644
--- a/init/km-gnus.el
+++ b/init/km-gnus.el
@@ -20,7 +20,8 @@
(defun km/sync-mail ()
(interactive)
- (let ((bufname (get-buffer-create "*Mail sync*")))
+ (let ((bufname (get-buffer-create "*Mail sync*"))
+ (default-directory "~"))
(with-current-buffer bufname
(view-mode 1)
(goto-char (point-max)))