Skip to content

Commit

Permalink
Fix diminishing company-mode
Browse files Browse the repository at this point in the history
The diminish call on global-company-mode has no effect. To hide the
lighter of company-mode, we must call diminish on company-mode, not its
global companion.
  • Loading branch information
jobor authored and bbatsov committed Apr 28, 2021
1 parent f9fb902 commit 43e484b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,8 @@

### Bugs fixed

* Fix `company` still being visible in the mode line.

## 1.1.0 (2021-02-14)

### New features
Expand Down
2 changes: 1 addition & 1 deletion modules/prelude-company.el
Expand Up @@ -44,7 +44,7 @@
(setq company-tooltip-flip-when-above t)

(global-company-mode 1)
(diminish 'global-company-mode)
(diminish 'company-mode)

(provide 'prelude-company)
;;; prelude-company.el ends here

0 comments on commit 43e484b

Please sign in to comment.