Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Created February 7, 2014 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yasushi/8855433 to your computer and use it in GitHub Desktop.
Save Yasushi/8855433 to your computer and use it in GitHub Desktop.
(defun rcirc-generate-log-filename-per-process (process target)
(expand-file-name (format-time-string "%Y%m%d.txt")
(expand-file-name (or target "notarget")
(expand-file-name (process-name process)
rcirc-log-directory))))
(setq rcirc-log-filename-function 'rcirc-generate-log-filename-per-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment