From 1ffe401e0db0efa012b933e530643ee78808ac71 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Petkovich Date: Tue, 17 Mar 2015 15:42:41 -0400 Subject: [PATCH] Use correct spacemacs cache directory for irc logs Use `spacemacs-cache-directory` for irc logs, rather than `~/.emacs/.cache/rcirc-logs` which looks incorrect (`.emacs` vs `.emacs.d`), and should not be hardcoded. Fix associated comment. --- contrib/rcirc/packages.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/rcirc/packages.el b/contrib/rcirc/packages.el index 1c644b0a7..be3042d23 100644 --- a/contrib/rcirc/packages.el +++ b/contrib/rcirc/packages.el @@ -79,9 +79,9 @@ which require an initialization must be listed explicitly in the list.") (insert (emms-track-description (emms-playlist-current-selected-track)))) (define-key rcirc-mode-map (kbd "C-c C-e") 'rcirc/insert-current-emms-track)) - ;; Minimal logging to `~/.rcirc-logs/channel' + ;; Minimal logging to `~/.emacs.d/.cache/rcirc-logs/' ;; by courtesy of Trent Buck. - (setq rcirc-log-directory "~/.emacs/.cache/rcirc-logs/") + (setq rcirc-log-directory (concat spacemacs-cache-directory "/rcirc-logs/")) (setq rcirc-log-flag t) (defun rcirc-write-log (process sender response target text) (when rcirc-log-directory