branch: elpa/anzu
commit 9de45b406c59c04e44013f0660e5b91bbaa06767
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>

    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