Malabarba / spinner.el

Emacs mode-line spinner for operations in progress
104 stars 21 forks source link

Can this be added to the compilation buffer? #16

Closed minad closed 4 years ago

minad commented 4 years ago

Is it possible to modify the mode line of the compilation buffer? Is there a generic mechanism, which is used to extend the mode line?

https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/compile.el

Malabarba commented 4 years ago

Hi @minad There's no config option for that. But simply calling the correct functions in compilation-mode hooks should be enough. Give this a try:

(add-hook 'compilation-start-hook #'spinner-start) (add-hook 'compilation-finish-functions (lambda (&rest _) (spinner-stop)))

minad commented 4 years ago

Thank you, that works!