dotfiles/emacs-lisp/daylies.org
main 5bed3b8355
Note review, using el.secretario
Signed-off-by: main <magic_rb@redalder.org>
2023-01-15 01:16:04 +01:00

741 B

Daylies

#

Daylies, are like scratch buffers, but they are saved. So I can shove stuff in them and they are nicely kept for later reference. Kind of INBOX.

  (defun point-scratch-to-daylies ()
    (save-excursion
      (with-current-buffer "*scratch*"
        (org-mode)
        (set-visited-file-name
         (format "~/roam/daylies/%s.org"
                 (format-time-string "%Y-%m-%d")))
        (rename-buffer "*scratch*"))))

  (add-hook 'emacs-startup-hook 'point-scratch-to-daylies)