dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
556 stars 51 forks source link

Support for colors when using meow #135

Open simonkir opened 1 year ago

simonkir commented 1 year ago

What I mean by that is having different colors depending on the current state when using meow, similar to how telephone-line looks when using evil.

I personally customized telephone-line-modal-face in my config to achieve what I'm asking for by doing this:

(defun telephone-line-modal-face (active)
    (cond ((not active) 'mode-line-inactive)
          ((and meow-normal-mode (region-active-p)) 'telephone-line-evil-visual)
          (meow-normal-mode 'telephone-line-evil-normal)
          (meow-insert-mode 'telephone-line-evil-insert)
          (meow-motion-mode 'telephone-line-evil-emacs)
          (meow-keypad-mode 'telephone-line-evil-operator)
          (meow-beacon-mode 'telephone-line-evil-replace)))

(As a side note: There actually is no visual state in meow. I just have that in there because I like having a clear indication whether the region is currently active. This probably isn't desirable by other meow users.)

Maybe something along these lines could also be included in the original telephone-line-modal-face function to benefit other meow users?