xwl / hightlight-tail

Draw a colourful "tail" while you write
GNU General Public License v3.0
3 stars 0 forks source link

make `highlight-tail-mode` a proper minor-mode with optional global minor mode #1

Open waymondo opened 4 years ago

waymondo commented 4 years ago

I'm glad to see someone reviving this snazzy package. One thing that prevented me from using it in the past is that highlight-tail-mode is globally enabled when the defun is called. There are certain modes, comint-mode, shell-mode, etc, where performance degrades with massive output and the tail flashing is not desired in those situations.

This could be solved by turning it into a proper minor mode using the define-minor-mode macro. The global behavior could be preserved with define-global-minor-mode.

xwl commented 4 years ago

Sounds like a good idea. Patches are welcome. :)