1

This might be a fairly stupid question but I simply can't figure it out.

I've been trying to install doom-modeline for spacemacs: https://seagle0128.github.io/doom-modeline/#install

I've added the use-package stuff to the configuration file like this:

...
   ;; configuration in `dotspacemacs/user-config'.
   dotspacemacs-additional-packages '((use-package doom-modeline
                                        :ensure t
                                        :init (doom-modeline-mode 1))
                                      (use-package all-the-icons))
   ;; A list of packages that cannot be updated.
   dotspacemacs-frozen-packages '()

...

Then I restarted spacemacs and it did install something. However, the modeline didn't change:

my modeline

It doesn't look like in the screenshots here: https://seagle0128.github.io/doom-modeline/#screenshots

Do I somehow have to activate it or something?

1
  • Did you try recompiling the spaceline? M-x spaceline-compile – user5512464 Sep 30 '20 at 2:02
1

Disclaimer: I did not find a way to integrate it into the Spacemacs intended use of packages.

Solution

Adding this snippet to my dotspacemacs/user-config:

(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1)
:config
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)

;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config)
)

Drawback

  • The packages doom-modelineis going to be delete and reinstalled at every Emacs startup when dotspacemacs-install-packages 'used-only) this option is set ( which I would recommend to avoid garbage ).

It seems Spacemacs does not support constructs like this(use-package <package> :ensure t).

Things tried

  • Putting doom-modeline into dotspacemacs-additional-packages.
    • Including trying to add the configuration block I put into the dotspacemacs/user-config section.
    • Result: Configuration is not applied.
  • Writing a custom layer and initializing doom-modeline in this layer.
    • Result: Configuration is not applied.

References

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.