emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu 9de45b406c 004/288: add sample


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 9de45b406c 004/288: add sample
Date: Thu, 6 Jan 2022 03:58:34 -0500 (EST)

branch: elpa/anzu
commit 9de45b406c59c04e44013f0660e5b91bbaa06767
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    add sample
---
 README.md | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index d9cfbd7526..9edde55fd1 100644
--- a/README.md
+++ b/README.md
@@ -39,8 +39,18 @@ Function which constructs mode-line string. If you color 
mode-line string,
 you propertize string by yourself.
 
 ```lisp
-(defun my/update-func (here total)
+(defun my/anzu-update-func (here total)
   (propertize (format "<%d/%d>" here total)
               'face '((:foreground "yellow" :weight bold))))
 (setq anzu-mode-line-update-function 'my/update-func)
 ```
+
+## Sample Configuration
+
+```lisp
+(require 'anzu)
+(global-anzu-mode t)
+
+(set-face-attribute 'anzu-mode-line nil
+                    :foreground "yellow" :weight 'bold)
+```



reply via email to

[Prev in Thread] Current Thread [Next in Thread]