[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark af03b2103e 50/75: docs: Docstring for org-re
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark af03b2103e 50/75: docs: Docstring for org-remark-default-features, etc. |
Date: |
Fri, 6 Oct 2023 12:59:19 -0400 (EDT) |
branch: externals/org-remark
commit af03b2103e1be65bb18829b750d5f29e8cded4c6
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
docs: Docstring for org-remark-default-features, etc.
---
org-remark-icon.el | 8 +++++++-
org-remark.el | 25 +++++++++++++++++++------
2 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/org-remark-icon.el b/org-remark-icon.el
index 9ccdd2e7d1..8fca035524 100644
--- a/org-remark-icon.el
+++ b/org-remark-icon.el
@@ -5,7 +5,7 @@
;; Author: Noboru Ota <me@nobiot.com>
;; URL: https://github.com/nobiot/org-remark
;; Created: 29 July 2023
-;; Last modified: 19 August 2023
+;; Last modified: 20 August 2023
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp
@@ -28,6 +28,8 @@
;;; Code:
(require 'cl-macs)
+;; Silence compiler
+(defvar org-remark-default-feature-modes)
(defgroup org-remark-icon nil
"Enable `org-remark' to display glyph/icon indicators."
@@ -87,6 +89,10 @@ single character, such as the default value."
(string "(d)")
(function)))
+;; Register a mode for automatic enablement at the same time as
+;; `org-remark-mode'.
+(add-to-list 'org-remark-default-feature-modes #'org-remark-icon-mode)
+
;;;###autoload
(define-minor-mode org-remark-icon-mode
"Enable Org-remark to display icons.
diff --git a/org-remark.el b/org-remark.el
index 75ff21e08a..a272214ba8 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -137,9 +137,21 @@ highlights. It is run with the source buffer as current
buffer."
;;;; Variables
-(defvar org-remark-default-features '(org-remark-icon org-remark-line))
-(defvar org-remark-default-feature-modes '(org-remark-icon-mode))
-(defvar org-remark-find-dwim-functions '(org-remark-find-overlay-at-point))
+(defvar org-remark-default-features '(org-remark-icon org-remark-line)
+ "Extension features to be enabled by default.
+It is suggested to keep them as the default, but you can choose to disable
them")
+
+(defvar org-remark-default-feature-modes '()
+ "Extension minor modes to be enabled together with `org-remark-mode'.
+These minor modes should be registered to this variable by the
+respective feature where required. As an example, see
+`org-remark-line'.")
+
+(defvar org-remark-find-dwim-functions '(org-remark-find-overlay-at-point)
+ "Functions to find the highlight overlays.
+These functions should be registered to this variable by the
+respective feature where required. As an example, see
+`org-remark-line'.")
(defvar org-remark-last-notes-buffer nil
"The cloned indirect buffer visiting the notes file.
@@ -324,9 +336,9 @@ recommended to turn it on as part of Emacs initialization.
(org-remark-mode
;; Activate
(dolist (feature org-remark-default-features)
- (unless (featurep feature) (require feature)))
+ (unless (featurep feature) (require feature nil 'noerror)))
(dolist (feature-mode org-remark-default-feature-modes)
- (funcall feature-mode +1))
+ (when (functionp feature-mode) (funcall feature-mode +1)))
(org-remark-highlights-load)
(add-hook 'after-save-hook #'org-remark-save nil t)
(add-hook 'org-remark-highlight-link-to-source-functions
@@ -806,7 +818,8 @@ Optionally ID can be passed to find the exact ID match."
(cl-defgeneric org-remark-highlight-make-overlay (_beg _end _face
_org-remark-type)
"Make overlay and return it
-Put FACE and other necessary properties to the highlight OV")
+Put FACE and other necessary properties to the highlight OV"
+ (ignore))
(cl-defmethod org-remark-highlight-make-overlay (beg end face
(_org-remark-type (eql
nil)))
- [elpa] externals/org-remark d72fa0ef45 70/75: fix: regression next/prev-view opens the notes when there is none, (continued)
- [elpa] externals/org-remark d72fa0ef45 70/75: fix: regression next/prev-view opens the notes when there is none, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 2b68d4748c 51/75: Merge branch 'main' into dev/line-highlight, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 833d909264 61/75: docs: NEWS for the current development branch (WIP), ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark cfaf02d823 72/75: docs: minor update to README and article on SVG icon, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark cbc26304a8 23/75: refactor: add org-remark-default-features to automatically load, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark f37ddb69e7 22/75: fix(change): force trigger of notes buffer face, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark d606d80a47 29/75: refactor: move highlights-delay-load to org-remark.el, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 335293a03e 41/75: style(line):Clean up comments, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 8c3238902b 54/75: docs: keybinding sync with README, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark e904b53b2c 60/75: refactor: silence compilier warning, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark af03b2103e 50/75: docs: Docstring for org-remark-default-features, etc.,
ELPA Syncer <=
- [elpa] externals/org-remark 16622af0c0 66/75: fix: add org-remark-find-overlay-at-point to local hook, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 2fd1025490 63/75: fix: Regression. Delete only removes., ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 8020d33380 47/75: docs: organize customizing groups, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 4e57d99e2d 68/75: fix: use space display specification instead of a string of \s, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 3997025261 33/75: feat: icons for line-hl get their default face when notes exit, ELPA Syncer, 2023/10/06