mihaiolteanu / vuiet

The music player and explorer for Emacs
https://mihaiolteanu.me/vuiet
GNU General Public License v3.0
278 stars 15 forks source link

Feature request: customize vuiet mode-line #34

Closed firmart closed 3 years ago

firmart commented 3 years ago

I wanted to keep my vuiet mode-line information on the top of my buffer (my mode-line is too long). So I ended up to something like this:

(setq header-line-format '((:eval mode-line-misc-info)))

However, vuiet still append my bottom mode-line (which is normal). I would want to have that information on the top only. To do this, I think it would be nice if the lines I quote below are separated in another function (say vuiet-mode-line-info). Then with an additional customizable variable which enable/disable vuiet mode-line information (say vuiet-append-mode-line), I would be able to reach what I was looking for with something like

(setq header-line-format '((:eval (vuiet-mode-line-info))))
(setq vuiet-append-mode-line nil)

https://github.com/mihaiolteanu/vuiet/blob/3dab1ea2253d5bc2974a1a064d2b1af3bd6b24f6/vuiet.el#L434-L444

mihaiolteanu commented 3 years ago

Nice! I haven't even thought about putting that info in the header. If you can implement it so that the user can pick where to display the info, that would be fine by me. Of course, this would need updates to all the places where the mode-line is updated, plus the README.

Something like,

(defcustom vuiet-mode-line-position "bottom"
  "Position of the currently playing track info: "bottom/up/none."
  :type '(string :tag "position")
  :group 'vuiet)
mihaiolteanu commented 3 years ago

Closed due to lack of activity.