[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pulsar 823969a6e8 05/10: Document how to use pulsar in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pulsar 823969a6e8 05/10: Document how to use pulsar in the minibuffer |
Date: |
Sat, 12 Aug 2023 03:58:37 -0400 (EDT) |
branch: externals/pulsar
commit 823969a6e80a5c2ba4782f0a7b5ef930480305e6
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Document how to use pulsar in the minibuffer
---
README.org | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/README.org b/README.org
index b5f92e92c1..1f5cff3f79 100644
--- a/README.org
+++ b/README.org
@@ -259,6 +259,33 @@ Pulsar-level solution that "just works":
(add-hook 'next-error-hook #'pulsar-pulse-line)
#+end_src
+** Use pulsar in the minibuffer
+:PROPERTIES:
+:CUSTOM_ID: h:8b942448-6ed3-4cb7-8e31-796a8c5011a6
+:END:
+
+[ This works as intended with changes that are part of
{{{development-version}}}. ]
+
+Due to how the minibuffer works, the user cannot rely on the user
+option ~pulse-pulse-functions~ to automatically pulse in that context.
+Instead, the user must add a function to the ~minibuffer-setup-hook~:
+it will trigger a pulse as soon as the minibuffer shows up:
+
+#+begin_src emacs-lisp
+(add-hook 'minibuffer-setup-hook #'pulsar-pulse-line)
+#+end_src
+
+The ~pulsar-pulse-line~ function will use the default Pulsar face, per
+the user option ~pulsar-face~.
+
+A convenience function can also be used
([[#h:6ca69953-1a89-4968-a46c-2fa5e57aca9b][Convenience functions]]). The
+idea is to apply a different color than the one applied by default.
+For example:
+
+#+begin_src emacs-lisp
+(add-hook 'minibuffer-setup-hook #'pulsar-pulse-line-blue)
+#+end_src
+
* Integration with other packages
:PROPERTIES:
:CUSTOM_ID: h:b884f2ac-82f3-48c0-bee5-6709d6647b1d
- [elpa] externals/pulsar updated (aa09693018 -> 1af423199d), ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 373c5f7955 03/10: Note that next version shall be 1.0.0, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 5e5796ecd5 02/10: Make pulsar--start also return point-min in the minibuffer, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 61ceda6812 08/10: Add missing backronym, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar b80af461be 09/10: Fix docstring of 'pulsar-recenter-middle' defalias, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 9e54e24aa9 04/10: Use more precise markup for 'pulsar' symbol in the manual, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 206eece04d 07/10: Add missing metadata to CHANGELOG, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar e2c077034e 01/10: Simplify the macro that defines pulsar-pulse-line-COLOR functions, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 823969a6e8 05/10: Document how to use pulsar in the minibuffer,
ELPA Syncer <=
- [elpa] externals/pulsar 1af423199d 10/10: Update to version 1.0.0, ELPA Syncer, 2023/08/12
- [elpa] externals/pulsar 08b6936e0c 06/10: Add missing metadata about user option versions, ELPA Syncer, 2023/08/12