From 2c4b91089b4f3fa0c24dfefc1e58b45b1e55ef6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=BD=8F=E6=9F=B1=E9=96=93?= Date: Mon, 22 Jan 2024 05:37:04 +0000 Subject: [PATCH] Update emacs.d/org-roam-templates/main.el --- emacs.d/org-roam-templates/main.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs.d/org-roam-templates/main.el b/emacs.d/org-roam-templates/main.el index add0b9b..3cd2296 100644 --- a/emacs.d/org-roam-templates/main.el +++ b/emacs.d/org-roam-templates/main.el @@ -1,5 +1,8 @@ ;; -*- mode: emacs-lisp; buffer-read-only: t; -*- +(require 'org-roam) ;; bug fix, org-roam doesn't load properly, so we have to call it. + +(setq org-roam-directory "/mnt/Data/Documents/org-files/org-roam") ;; be paranoid, only open org files in read-only mode. ;; @@ -12,6 +15,7 @@ (add-hook 'org-mode-hook 'myorg-open-read-only-mode) + ;;;; add inactive timestamp to every org-item ;; https://stackoverflow.com/a/52815573/5115219 ;; https://emacs.stackexchange.com/a/45369/29404