From 373cf299e9bcb57031d698dac6bc47a5dad2e797 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 26 Sep 2023 10:20:58 -0400 Subject: [PATCH] Add org-scractch function --- emacs/.emacs.d/config/init-org.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/.emacs.d/config/init-org.el b/emacs/.emacs.d/config/init-org.el index bf009be..930e912 100644 --- a/emacs/.emacs.d/config/init-org.el +++ b/emacs/.emacs.d/config/init-org.el @@ -9,6 +9,10 @@ :config (add-hook 'org-mode-hook #'olivetti-mode) (add-hook 'org-mode-hook (lambda () (require 'org-attach))) + (defun org-scratch () + (interactive) + (switch-to-buffer "*org-scratch*") + (org-mode)) (defun org-find-daily-note () (interactive) (let* ((filename (expand-file-name