X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=blobdiff_plain;f=text-counters.el;h=4f08d682086150d379c25ceb8ddf4fc450254390;hp=fb24df7b529dc08589f88e31dbc4ebbbedb5c554;hb=66c3aa1f8138fe17ec36919e5fbd48b45c79845c;hpb=aa1435b5ae3a849522f783870cb9c393a9549d9b diff --git a/text-counters.el b/text-counters.el index fb24df7..4f08d68 100644 --- a/text-counters.el +++ b/text-counters.el @@ -18,6 +18,12 @@ ;; Contact for comments & bug reports ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; This script automatigally count the number of characters and words +;; between "----" markers. To activate it automatically when switching +;; to text-mode, just add to your emacs.el +;; +;; (add-hook 'text-mode-hook 'tc/add-text-counters-in-modeline) + (defface tc/modeline-face '((((background light)) (:foreground "blue4")) (((background dark)) (:foreground "cyan")))