From a27d68b18cbdb129a4ab8cc2b226608516413c36 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sun, 26 Mar 2023 15:26:34 +0200 Subject: [PATCH] Add some more org configuration --- modules/base/emacs/base-init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/base/emacs/base-init.el b/modules/base/emacs/base-init.el index f32378a2..8518700d 100644 --- a/modules/base/emacs/base-init.el +++ b/modules/base/emacs/base-init.el @@ -235,9 +235,17 @@ ;; Org (use-package org + :init + (defun set-creation-date-heading-property () (org-set-property "CREATED" (format-time-string (org-time-stamp-format t t)))) + :hook + (org-insert-heading . set-creation-date-heading-property) :custom (org-directory "~/sync/notes" "Store org journal in synced directory") (org-agenda-files '("~/sync/notes") "Let's say all files can contain events for now") + :general + (lmap + "SPC i" '(org-insert-heading :which-key "Insert heading") + ) ) ;; Sorting when filtering