sshaw / build-status

Emacs minor mode that monitors and shows a buffer's build status in the mode line.
27 stars 2 forks source link

How to connect this to doom-modeline #10

Open johnhamelink opened 4 years ago

johnhamelink commented 4 years ago

Hi there,

Apologies if this is a silly question, but does this package work with doom-modeline? How would I configure doom-modeline to add the build status?

Thanks JH

sshaw commented 4 years ago

Hi, good question! Seems like doom-emacs is always trending on GitHub.

I've only seen it –never used it– but, from doom-modeline's docs, it sounds it like it should work out the box:

Can I add my mode-line segments myself? How to do that? How can I define my own mode-line? There are two methods. If the information is simple, just add to mode-line-misc-info or global-mode-string.

That's done here.

Questions:

  1. Does it work without doom-modeline? 😄
  2. The modeline string being used has to be marked safe. Maybe there's an autoloading issue ? Does this return t: (get 'build-status-mode-line-string 'risky-local-variable)?
  3. If it does work outside doom-modeline, what are the values of global-mode-string and mode-line-misc-info when using it?