From 0d7067b72e0aa256e595e1322c452d60f51cc163 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 3 Feb 2015 11:37:42 -0800 Subject: [PATCH] Make email command a bit spiffier. --- dotfiles/emacs.d/init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 62eed0f9..6dc2e51c 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -883,11 +883,11 @@ the same tree node, and the headline of the tree node in the Org-mode file." :bind ("C-c 0" . email) :config (progn - (defun email () - (interactive) + (defun email (&optional arg) + (interactive "P") (persp-switch "email") - (unless (mu4e-running-p) - (mu4e))) + (when (or (not (mu4e-running-p)) arg) + (delete-other-windows) (mu4e))) ;; enable inline images (setq mu4e-view-show-images t) ;; show images