Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spacemacs|dimish does not work when spaceline is excluded #5194

Closed
sooheon opened this issue Feb 23, 2016 · 7 comments
Closed

spacemacs|dimish does not work when spaceline is excluded #5194

sooheon opened this issue Feb 23, 2016 · 7 comments
Labels
- Bug tracker - Mode Line stale marked as a stale issue/pr (usually by a bot)

Comments

@sooheon
Copy link

sooheon commented Feb 23, 2016

Description

Calls to spacemacs|diminish when spaceline is excluded from dotspacemacs is ineffectual. Is there some unnecessary coupling there?

Reproduction guide

  • Add spaceline to dotspacemacs-excluded-packages
  • Set dotspacemacs-mode-line-unicode-symbols nil
  • Restart Emacs
  • Observe non-diminished modeline
  • Interactively (or in code) call something like (spacemacs|diminish evil-cleverparens-mode nil " cp")

Observed behaviour:
No diminishing!

Expected behaviour:
Diminishing according to given string.

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: develop (rev. fd93264)
  • Distribution: spacemacs
  • Editing style: hybrid
  • Completion: ivy
  • Layers:
((auto-completion :variables auto-completion-tab-key-behavior 'cycle auto-completion-return-key-behavior 'complete auto-completion-enable-snippets-in-popup t auto-completion-enable-sort-by-usage t)
 better-defaults colors clojure dash emacs-lisp
 (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
 finance html markdown
 (shell :variables shell-default-position 'bottom shell-default-shell 'eshell)
 git org osx pandoc rcirc syntax-checking spacemacs-ivy version-control
 (vinegar :variables vinegar-reuse-dired-buffer t)
 sooheon)
@TheBB
Copy link
Collaborator

TheBB commented Feb 23, 2016

Yes, this doesn't work if spaceline is not enabled.

@person808
Copy link
Contributor

Seems like the function spacemacs//prepare-diminish is responsible

@justbur
Copy link
Contributor

justbur commented Feb 26, 2016

I just ran into this. Here's a workaround

  (defun spacemacs/diminish-hook (_)
    (cl-loop for (mode uni nouni) in spacemacs--diminished-minor-modes
             do
             (diminish mode
                       (if dotspacemacs-mode-line-unicode-symbols
                           uni nouni))))
  (add-hook 'after-load-functions 'spacemacs/diminish-hook)

@TheBB
Copy link
Collaborator

TheBB commented Feb 28, 2016

Seems like a reasonable thing to put in spacemacs-base/init-diminish if Spaceline is not present.

@d12frosted
Copy link
Collaborator

Fixed with released of Spacemacs v0.200. Let us know if you still have any problems with this issue.

@lebensterben
Copy link
Collaborator

lebensterben commented Jun 5, 2021

Currently, spacemacs|diminish has no effects when spaceline is enabled...
which is opposite to the original issue...

If we choose doom-modeline as the modeline theme, it installs doom-modeline package but doesn't disable spaceline, therefore

(unless (configuration-layer/package-used-p 'spaceline)
(add-hook 'after-load-functions 'spacemacs/diminish-hook)))
never evaluates.

@lebensterben lebensterben reopened this Jun 5, 2021
@github-actions
Copy link

github-actions bot commented Jun 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Jun 5, 2022
@github-actions github-actions bot closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Mode Line stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

8 participants