branch: externals/org-remark commit 447edb9d6d09eda11b0bb7033d41b28032bcbc01 Author: Noboru Ota <m...@nobiot.com> Commit: Noboru Ota <m...@nobiot.com>
intrnl: Add file var to make README as marginalia --- README.org | 37 +++++++++++++++++++++++++++++++++++++ marginalia.org | 47 ----------------------------------------------- org-marginalia.el | 3 ++- 3 files changed, 39 insertions(+), 48 deletions(-) diff --git a/README.org b/README.org index 894d1f68bc..ad5b3989ff 100644 --- a/README.org +++ b/README.org @@ -37,6 +37,10 @@ Refer to the screenshots below for a teaser of what it can do. - [[#credits][Credits]] - [[#feedback][Feedback]] - [[#license][License]] +- [[#marginalia-for-org-marginaliael][Marginalia for org-marginalia.el]] + - [[#defun-omnext][defun om/next]] + - [[#defgroup-org-marginalia][(defgroup org-marginalia]] + - [[#defface-omhighlighter][(defface om/highlighter]] :END: * Installation @@ -153,6 +157,39 @@ I am aiming to keep this package to be small and focused. I plan to add the foll This work is licensed under a GPLv3 license. For a full copy of the licese, refer to [[./LICENSE][LICENSE]]. +* Marginalia for ~org-marginalia.el~ +:PROPERTIES: +:marginalia-source-file: ~/local-repos/org-marginalia/org-marginalia.el +:END: +This section is used as a demonstration and a collection of my ideas for this package. + +** defun om/next +:PROPERTIES: +:marginalia-id: 33710cc4 +:marginalia-source-beg: 15744 +:marginalia-source-end: 15757 +:END: +[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] +I need to think it through. +Do I want to reveal invisible elments to move, or keep it hidden. +At the moment, ~om/list-highlights-positions~ has been changed to return beginning points of visible ones only -- this can be changed to make it opsitonal arg. For example, if I want to list *all*, including the hidden ones, do I want to just visible ones? + +** (defgroup org-marginalia +:PROPERTIES: +:marginalia-id: 0d953675 +:marginalia-source-beg: 6409 +:marginalia-source-end: 6433 +:END: +[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] +** (defface om/highlighter +:PROPERTIES: +:marginalia-id: 8ccff166 +:marginalia-source-beg: 6624 +:marginalia-source-end: 6647 +:END: +[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] +* COMMENT Local Variables + # Local Variables: # eval: (require 'org-make-toc) # before-save-hook: org-make-toc diff --git a/marginalia.org b/marginalia.org deleted file mode 100644 index aae2fa3d23..0000000000 --- a/marginalia.org +++ /dev/null @@ -1,47 +0,0 @@ -#+title: Margin notes for org-marginala - -# Using it as test and demo file. - -* Org-marginalia README -:PROPERTIES: -:marginalia-source-file: ~/local-repos/org-marginalia/README.org -:END: - -** Screenshots -:PROPERTIES: -:marginalia-id: 1306ba7f -:marginalia-source-beg: 566 -:marginalia-source-end: 577 -:END: -[[file:~/local-repos/org-marginalia/README.org][Org-marginalia]] - -* org-marginalia.el -:PROPERTIES: -:marginalia-source-file: ~/local-repos/org-marginalia/org-marginalia.el -:END: -** (defgroup org-marginalia -:PROPERTIES: -:marginalia-id: 0d953675 -:marginalia-source-beg: 6409 -:marginalia-source-end: 6433 -:END: -[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] - -** (defface om/highlighter -:PROPERTIES: -:marginalia-id: 8ccff166 -:marginalia-source-beg: 6624 -:marginalia-source-end: 6647 -:END: -[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] - -** TODO defun om/next -:PROPERTIES: -:marginalia-id: 33710cc4 -:marginalia-source-beg: 15744 -:marginalia-source-end: 15757 -:END: -[[file:~/local-repos/org-marginalia/org-marginalia.el][org-marginalia]] -I need to think it through. -Do I want to reveal invisible elments to move, or keep it hidden. -At the moment, ~om/list-highlights-positions~ has been changed to return beginning points of visible ones only -- this can be changed to make it opsitonal arg. For example, if I want to list *all*, including the hidden ones, do I want to just visible ones? diff --git a/org-marginalia.el b/org-marginalia.el index 6073eb252f..7e64e1b268 100644 --- a/org-marginalia.el +++ b/org-marginalia.el @@ -552,5 +552,6 @@ state." ;; fill-column: 78 ;; require-final-newline: t ;; sentence-end-double-space: nil -;; eval: (org-marginalia-mode 1) +;; eval: (setq-local om/notes-file-path "README.org") +;; eval: (if (find-library "org-marginalia")(progn (require 'org-marginalia)(org-marginalia-mode 1))) ;; End: