commit 294327238e5ded52a3b718f8d45cf28973bc5899
parent cc75016076c591f57a66b29eec04b82fe52db0bd
Author: Cem Keylan <cem@ckyln.com>
Date: Sun, 25 Oct 2020 17:02:37 +0300
mu4e-config.el: remove config-home variable
Don't define a global variable just for a single operation. We are not even
using the same variable twice in the local scope, it doesn't require its own
variable.
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/mu4e-config.el b/mu4e-config.el
@@ -18,14 +18,12 @@
(defvar mu4e-get-mail-command)
(defvar mu4e-contexts)
(defvar mu4e-sent-messages-behavior)
-(defvar config-home)
(setq mu4e-get-mail-command "mbsync -a"
mail-user-agent 'mu4e-user-agent
message-send-mail-function 'message-send-mail-with-sendmail
sendmail-program (executable-find "msmtp")
- mu4e-sent-messages-behavior 'sent
- config-home (or (getenv "XDG_CONFIG_HOME") "~/.config"))
+ mu4e-sent-messages-behavior 'sent)
;; Make mu4e-contexts an empty list.
@@ -33,7 +31,7 @@
;; Load user accounts.
(dolist (file (directory-files
- (expand-file-name "mu4e/accounts" config-home) t "\.el$" nil))
+ (expand-file-name "mu4e/accounts" (or (getenv "XDG_CONFIG_HOME") "~/.config")) t "\.el$" nil))
(load file))
(provide 'mu4e-config)