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.
This commit is contained in:
parent
a5e33401d0
commit
1ffe401e0d
|
@ -79,9 +79,9 @@ which require an initialization must be listed explicitly in the list.")
|
||||||
(insert (emms-track-description (emms-playlist-current-selected-track))))
|
(insert (emms-track-description (emms-playlist-current-selected-track))))
|
||||||
(define-key rcirc-mode-map (kbd "C-c C-e") 'rcirc/insert-current-emms-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.
|
;; 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)
|
(setq rcirc-log-flag t)
|
||||||
(defun rcirc-write-log (process sender response target text)
|
(defun rcirc-write-log (process sender response target text)
|
||||||
(when rcirc-log-directory
|
(when rcirc-log-directory
|
||||||
|
|
Loading…
Reference in a new issue