dgtized / list-environment.el

A tabulated process environment editor
14 stars 1 forks source link

Wrap and stripe #1

Open kaushalmodi opened 9 years ago

kaushalmodi commented 9 years ago

Thanks for this package!

I added the below to improve the readability of the vars in the table:

(with-eval-after-load 'stripe-buffer
      (defun modi/list-environment (orig-fun &rest args)
        (let ((truncate-partial-width-windows nil))
          (apply orig-fun args)
          (setq-local line-move-visual nil) ; logical line navigation
          (set-window-fringes nil 0 0) ; disable fringes in current window
          (toggle-truncate-lines -1)
          (stripe-listify-buffer)))
      (advice-add 'list-environment :around #'modi/list-environment))

The alternate stripes make it evident how many lines an env var value has wrapped.