mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
26 lines
741 B
Org Mode
26 lines
741 B
Org Mode
|
:PROPERTIES:
|
||
|
:ID: f4a10ea3-a1df-42cc-b436-08d859272679
|
||
|
:END:
|
||
|
#+title: Daylies
|
||
|
#+filetags: emacs-load
|
||
|
|
||
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||
|
#
|
||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||
|
|
||
|
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.
|
||
|
|
||
|
#+begin_src emacs-lisp
|
||
|
(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)
|
||
|
#+end_src
|
||
|
|