From f4204b42a78efd46bdac9698dd91aa30cebcda0d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 25 Mar 2023 22:33:29 -0700 Subject: [PATCH] [oni-org-roam] Improve the list of reading books, link the pages --- oni-org-roam.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oni-org-roam.el b/oni-org-roam.el index 261d1c9..2df0744 100644 --- a/oni-org-roam.el +++ b/oni-org-roam.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2023.0325.115622 +;; Version: 2023.0325.222921 ;; Package-Requires: (oni-org org-roam) ;; This program is free software; you can redistribute it and/or modify @@ -80,7 +80,11 @@ (let ((buffer (get-buffer-create "*books-to-read*"))) (with-current-buffer buffer (erase-buffer) - (mapc (lambda (item) (insert (caddr item) "\n")) (oni-org-roam--books-to-read))) + (save-excursion + (mapc (lambda (item) (insert "- [["(cadr item) "][" + (caddr item) "]]\n")) + (oni-org-roam--books-to-read)) + (org-mode))) (switch-to-buffer buffer))) (defun oni-org-roam-random-book-to-read ()