Comments (14)
I don't like displaying minor modes personally. The mode-line looks too long and complicated.
Since someone like it, I implement a simple segment but disable it by default.
from doom-modeline.
(setq doom-modeline-minor-modes t)
to enable.
from doom-modeline.
Thanks!
Works almost great :-)
I've found you disable projectile-dynamic-mode-line in doom modeline. What for? It shouldn't make any difference when minor modes are not visible, but it does make a difference when they are shown.
You commented that it disables "projectile mode-line segment". I don't think that's a segment, it's just a lighter.
EDIT: also mouse clicks are completely broken. Not that I really care/use them, but you might want to know :-) It takes full string of the surroundings:
minor-mode-menu-from-indicator: Cannot find minor mode for ‘10:56 Parinfer:Indent P LF UTF-8 Lisp Interaction - ’ [4 times]
describe-minor-mode-from-indicator: Cannot find minor mode for ‘10:56 Parinfer:Indent P LF UTF-8 Lisp Interaction - ’ [8 times]
from doom-modeline.
Also if possible would you be so kind to create a customizable face for it? The same way one exists e.g. for major mode (doom-modeline-buffer-major-mode).
from doom-modeline.
You commented that it disables "projectile mode-line segment". I don't think that's a segment, it's just a lighter.
You are right! It's a lighter. Because all minor-modes are disabled in doom-modeline
before, I disabled it as well, but not necessary now. I will remove it.
also mouse clicks are completely broken.
I am investigating this minor issue.
if possible would you be so kind to create a customizable face for it?
Since they are minor modes, I just keep them as default face, which keeps mode-line clean and simple. I don't want to make too many colors from doom-themes
. Do you have any idea for the minor modes?
from doom-modeline.
Since they are minor modes, I just keep them as default face, which keeps mode-line clean and simple. I don't want to make too many colors from
doom-themes
. Do you have any idea for the minor modes?
You can create the face and make it inherit from the default face and not touch doom-themes at all, I don't mind. But this way I'll be able to customize it myself.
from doom-modeline.
@Havner Okay. I know what you mean exactly. Will drop in soon.
from doom-modeline.
Cheers!
Works great now.
from doom-modeline.
One question though, partly related. Today I've noticed that LSP has it's own segment, or something generic, that's showing LSP. Together with minor mode segment I see it twice. This is not a bug in minor mode segment but I'd like to know how to identify the other one displaying it.
EDIT: Forget it, (doom-modeline-def-segment lsp
, couldn't be clearer. I suppose there is no generic way to enable/disable segments other then adding a config option for each of them?
EDIT2: and the reason I noticed it just today is because it's the most recent addition ;-)
Probably the most optimal solution would be to introduce enablers (and maybe custom faces) for all segments so people can choose and configure whatever they want ;-)
EDIT3:
(defun doom-modeline-segment--lsp ())
Did the job for now.
from doom-modeline.
lsp-mode
provides the lighter in the minor mode. lsp
segment leverage the same lighter because of the compatibility with two different co-existing interfaces (lsp-mode.el
and lsp.el
). I discussed with the maintainers of lsp-mode
. We will continue improving it with the new APIs after the legacy codes are deleted. I think you can just remove lsp
lighter from the minor modes segment.
Well, today I don't provide all enablers for each segment. Only for minor-modes
. I may add others but no promise for all segments.
from doom-modeline.
I think you can just remove
lsp
lighter from the minor modes segment.
There doesn't seem to be any provided means to do this. It was easier to disable doom line segment for me.
from doom-modeline.
diminish
or delight
is easy to remove lighters on mode-line. Or just redefine lsp-mode-line
. It's up to you, anyway. Cheers!
from doom-modeline.
I use delight, but LSP mode line is dynamic. Delight won't help here. And there is no lsp-mode-line variable defined in newest LSP.
EDIT: Ok, surprisingly delight actually worked.
from doom-modeline.
Seems diminish
does work. Redefining lsp-mode-line
function or overriding it with ignore
also does work...
from doom-modeline.
Related Issues (20)
- [Feature request] Customize display of line and column numbers
- [Bug] Custom segment makes emacs lag HOT 1
- [Bug] Missing icon for a common major mode (emacs-jupyter) HOT 4
- [Bug] Modeline aligns with fill column in visual-fill-column-mode HOT 3
- [Feature Request] Add hooks for pre-processing buffer-file-name and buffer-file-truename. HOT 4
- [Feature Request] Add support for `jupyter-repl-interaction-mode-line`
- [Bug] Emacs 29.1 - Warning (comp): doom-modeline-core.el:1098:37: Warning: reference to free variable ‘mode-line-right-align-edge’ HOT 4
- display number of goals in Coq mode HOT 11
- [Feature Request] Feed path through `abbreviate-file-name` HOT 2
- [Bug] buffer-state-icon display error HOT 1
- [Bug] need update for latest jsonrpc accessor change: `jsonrpc--request-continuations` HOT 9
- [Feature Request] Support for Flycheck-status-emoji HOT 4
- Error using with latest eglot / jsonrpc packages HOT 4
- Can the 'which-function' be disabled? HOT 2
- [Bug] buffer-position formatting won't respect flags in format specifier for column HOT 4
- [Bug] Lightbulb symbol 01F4A1 not displaying in mode line HOT 3
- [Feature Request] display-all-git-branches HOT 2
- [Bug] Icons on modeline lack sufficient padding HOT 14
- [Bug] modeline fragments do not get updated correctly when a command that changes the current-buffer is running HOT 3
- [Bug] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doom-modeline.