Arne Babenhauserheide  committed d463536

append the hook locally to not affect all buffers.

  • Participants
  • Parent commits 3c0dd69
  • Branches fluss

Comments (0)

Files changed (1)

File libs/rainbow-text.el

 ; show normal text in rainbow colors
-(setq rainbow-text-char-colors 
+(setq rainbow-text-char-colors-kab 
       '(("a" "#ade") ; hellblau
         ("ä" "#853") ; lehmbraun
         ("b" "#dbf") ; 
         ("z" "#ffa" );hellgelb
+(setq rainbow-text-char-colors rainbow-txt-colors-kab)
 (defun rainbow-text-colorize (&optional begin end length)
   "colorize a buffer by its chars."
 (defun rainbow-text-add-hook () 
   "Initialize rainbow text for this buffer."
-  (add-hook 'after-change-functions 'rainbow-text-colorize))
+  (add-hook 'after-change-functions 'rainbow-text-colorize t t)) ; append locally
 (provide 'rainbow-text)