[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark ca0c0ac674 080/173: doc: global-tracking doc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark ca0c0ac674 080/173: doc: global-tracking docstring |
Date: |
Fri, 28 Jan 2022 16:58:03 -0500 (EST) |
branch: externals/org-remark
commit ca0c0ac674f0c231f624ddd18be29c002ece4263
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
doc: global-tracking docstring
---
org-marginalia-global-tracking.el | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/org-marginalia-global-tracking.el
b/org-marginalia-global-tracking.el
index f68a09eb39..1e6808211d 100644
--- a/org-marginalia-global-tracking.el
+++ b/org-marginalia-global-tracking.el
@@ -46,8 +46,13 @@ activates `org-marginalia-mode' locally for the file opened."
(remove-hook 'find-file-hook #'org-marginalia-tracking-auto-on)
(remove-hook 'kill-emacs-hook #'org-marginalia-tracking-save))))
+;;;; Private Functions
+
(defun org-marginalia-tracking-auto-on ()
- "."
+ "Activate `org-marginalia-mode' when file is being tracked.
+The files being tracked are loaded on to
+`org-marginalia-files-tracked'. Refer to
+`org-marginalia-tracking-load'."
(when (and org-marginalia-files-tracked
(member (abbreviate-file-name (buffer-file-name))
org-marginalia-files-tracked))
@@ -55,9 +60,11 @@ activates `org-marginalia-mode' locally for the file opened."
(org-marginalia-mode +1)))
(defun org-marginalia-tracking-load ()
- ".
-Each line. It loads regardless of `org-marginalia-tracking-file';
-if already loaded this function reloads."
+ "Load files being tracked from `org-marginalia-tracking-file'.
+It has one filename each line (separated by "\n"). The filename
+is obtrained `abbreviated-file-names'. This function reloads the
+content of the file regardless if it is already done in this
+Emacs session or not."
(with-temp-buffer
(condition-case nil
(progn
@@ -67,7 +74,9 @@ if already loaded this function reloads."
(setq org-marginalia-tracking-file-loaded t)))))
(defun org-marginalia-tracking-save ()
- "."
+ "Save files being tracked in `org-marginalia-tracking-file'.
+Files with marginal notes are tracked with variable
+`org-marginalia-files-tracked'."
(interactive)
(when org-marginalia-files-tracked
(with-temp-file org-marginalia-tracking-file
- [elpa] externals/org-remark 3c270b4e28 025/173: doc: Update readme with a title screen, (continued)
- [elpa] externals/org-remark 3c270b4e28 025/173: doc: Update readme with a title screen, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3af3a47e1b 047/173: feat: Add transient navigation to next/prev, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark d8908d6aba 054/173: doc: fix code example in README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f9c313342c 067/173: chg: separate global-tracking.el, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a42ca0f756 066/173: readme for marginalia, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e78f549267 069/173: intrnl: housekeep to save; refactor remove, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 7176e9d460 073/173: add: ID inherits. fix: housekeep, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9bb66a742e 074/173: fix: overlay front-advance, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 2ed345c66c 071/173: rm: create-id option, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b6e6a55f63 075/173: chg: customization notes-file-path type to file, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark ca0c0ac674 080/173: doc: global-tracking docstring,
ELPA Syncer <=
- [elpa] externals/org-remark 12e0b631eb 076/173: lint: shorten longer than 80 char, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9d63088869 086/173: docs: README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark ad93331bf7 089/173: doc: update README with comment on autoload, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 75698160aa 098/173: fix: for name change, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark c946340b50 096/173: intrnl: refactor & docstrings, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 92d3b17bf3 099/173: change name org-hana to org-remark, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9fd5ef5b74 105/173: doc: NOTICE on name change proposal, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3bb5f40e59 121/173: intrnl: refactor. mark saves; load only loads with no save, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark c03ce7b590 123/173: fix: save and line-num for ID., ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark d07f158dfe 125/173: add:refactor: org-remark-source-path, org-remark-notes-track-file, ELPA Syncer, 2022/01/28