[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 1afa7d7b0f 013/288: Add flag whether anzu.el cons sea
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 1afa7d7b0f 013/288: Add flag whether anzu.el cons search info to mode-line(#4) |
Date: |
Thu, 6 Jan 2022 03:58:35 -0500 (EST) |
branch: elpa/anzu
commit 1afa7d7b0f15e2d20c88fc21d15b3f0d44804bef
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Add flag whether anzu.el cons search info to mode-line(#4)
---
anzu.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/anzu.el b/anzu.el
index 3ba212522b..0ed9ae250d 100644
--- a/anzu.el
+++ b/anzu.el
@@ -46,6 +46,11 @@
:type 'string
:group 'anzu)
+(defcustom anzu-cons-mode-line-p t
+ "Set nil if you use your own setting"
+ :type 'boolean
+ :group 'anzu)
+
(defcustom anzu-use-migemo nil
"Flag of using migemo"
:type 'boolean
@@ -105,12 +110,12 @@
(equal (car mode-line-format) '(:eval (anzu--update-mode-line)))))
(defun anzu--cons-mode-line ()
- (unless (anzu--mode-line-not-set-p)
+ (when (and anzu-cons-mode-line-p (not (anzu--mode-line-not-set-p)))
(setq mode-line-format (cons '(:eval (anzu--update-mode-line))
mode-line-format))))
(defun anzu--reset-mode-line ()
- (when (anzu--mode-line-not-set-p)
+ (when (and anzu-cons-mode-line-p (anzu--mode-line-not-set-p))
(setq mode-line-format (cdr mode-line-format))))
(defun anzu--update-mode-line-default (here total)
- [nongnu] elpa/anzu b61877bf18 006/288: fixed an error at when the variable has a string value, not a list., (continued)
- [nongnu] elpa/anzu b61877bf18 006/288: fixed an error at when the variable has a string value, not a list., ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 450b4ddb4b 008/288: Fix byte compile warnings(#1), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 69518308a0 009/288: Remove needless customization variable, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9c56ab9875 014/288: Update document about anzu-cons-mode-line-p, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 241af32b99 002/288: Add update mode-line function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a52dca6f92 010/288: Support migemo(#2), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 66807d27a7 012/288: Add Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu c2f8cbc234 016/288: Fix header, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f570e01b4c 032/288: Merge pull request #8 from bbatsov/doc-improvement, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f57d1e6ceb 033/288: bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 1afa7d7b0f 013/288: Add flag whether anzu.el cons search info to mode-line(#4),
ELPA Syncer <=
- [nongnu] elpa/anzu e9bb490b65 003/288: Update document, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9de45b406c 004/288: add sample, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9ab3cfa390 007/288: Merge pull request #3 from kiwanami/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e39deb4aec 011/288: Add comment section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fda98326a 024/288: input is regexp if isearch-regexp is non-nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9ec5a834cf 025/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8f91b00c91 028/288: Improve the documentation a bit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b644e9d067 034/288: Better one-line description, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06ae1b1f7e 035/288: Merge pull request #9 from purcell/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06f4cf2fe7 037/288: Introduce anzu-minimum-input-length, ELPA Syncer, 2022/01/06