kiennq / emacs-mini-modeline

Display emacs mode line in minibuffer
GNU General Public License v3.0
202 stars 14 forks source link

EXWM + spacemacs, mini-modeline truncates without truncation option on. #14

Open nhmacuk opened 4 years ago

nhmacuk commented 4 years ago

The mini-modeline gets truncated (the percentage sign of the battery level in this case), which causes the modeline to expand to two lines when changing to another buffer. Setting the visual-line-mode or truncation options on/off doesn't seem to change this behavior. Using the package with EXWM on emacs 26.3 with spacemacs developers edition. image

kiennq commented 4 years ago

Did you by any chance set mini-modeline-truncate-p to nil? To have line truncated, mini-modeline-truncate-p should be set to t (defaut).

Also, if you're using EXWM, you can try to set mini-modeline-frame to exwm-workspace--current since that's the frame that minibuffer is displayed.

nhmacuk commented 4 years ago

mini-modeline-truncate-p is set to t. When setting mini-modeline-frame to exwm-workspace--current, the modeline displays nothing anymore (is empty).

kiennq commented 4 years ago

Hmm, sadly I'm not using EXWM (I'm not on any linux distribution either), so to debug this kind of stuff is pretty no-op for me

nhmacuk commented 4 years ago

Ah thanks anyway. Love your package and using it daily.


From: kiennq notifications@github.com Sent: 21 January 2020 19:45:31 To: kiennq/emacs-mini-modeline Cc: Jarno Vegting; Author Subject: Re: [kiennq/emacs-mini-modeline] EXWM + spacemacs, mini-modeline truncates without truncation option on. (#14)

Hmm, sadly I'm not using EXWM (I'm not on any linux distribution either), so to debug this kind of stuff is pretty no-op for me

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kiennq/emacs-mini-modeline/issues/14?email_source=notifications&email_token=AKXFX245C5JM3245TRFRQBLQ647EXA5CNFSM4KFYHR3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJQZ5BA#issuecomment-576822916, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKXFX27EEY3JMLZ75NKXDLLQ647EXANCNFSM4KFYHR3A.

QiangF commented 4 years ago

@nhmacuk Looks like you have a line wrap, make sure the frame is the frame in focus, exwm can have multiple frames, eg. different desktop or you can have separate frame for minibuffer. This might help:

   (defvaralias 'mini-modeline-frame 'exwm-workspace--current)