Comments (6)
Appreciate it for your great suggestion!
It's true the goal is keeping minimalistic, but I'm also open to accept PRs which are simple, nice and useful.
The global
and buffer-position
are nice to add to the mode-line. I will merge soon. Please test then.
Thanks a lot, again!
from doom-modeline.
That's great to hear! :D
from doom-modeline.
Ah, btw, in case you are wondering about the spaces in buffer-position, I tried to keep the original padding of 2 spaces like "__%l:%c %p__"
in any combination of line-number-mode
and column-number-mode
and the percentage.
When the mode-line-position
is empty, it will keep only two spaces "__"
, the one in buffer-position
and the one in the main modeline spec.
I chose to do it like this, because if some mode completely replaces mode-line-position
, they may choose to not pad it, but will at the very least have 1 space of padding (like pdf-view-mode
, which only pads the string to the left).
from doom-modeline.
Thanks for the explanations, @weirdNox! I will think about it.
I've added global-mode-string
in 4d4ec2e.
Regarding buffer-position
, I have concerns about mode-line-percent-position
and column-number-indicator-zero-based
which are introduced in 26. Need more considerations for 25...
from doom-modeline.
Ohh, I had no idea, I just went to see the default value in my Emacs, which is v26, and adapted from it!
Maybe you could add a check outside with boundp, and if not defined, you could create them with a defvar.
Or instead of using them directly, using something like
(defvar doom-modeline-percent (or (bound-and-true-p mode-line-percent-position) '(-3 "%p"))
"...")
(defvar doom-modeline-column-zero-based (or (bound-and-true-p column-number-indicator-zero-based) t)
"...")
(...if the macro bound-and-true-p
is defined in 25 ahah)
I don't know, your call :)
from doom-modeline.
Thanks! :D
from doom-modeline.
Related Issues (20)
- all-the-icons 'broken' in doom-modeline [Bug] HOT 3
- [Feature Request] With the shift to nerd-fonts the LISP icon seems to be gone HOT 7
- [Bug] Clock icon is cropped with nerd-icons HOT 3
- [Bug] Visual glitches with nerd-icons HOT 8
- [Bug] Modal icons no longer shown (probably after nerd-icons switch) HOT 5
- [Bug] Xah-fly-keys : Unable to find icon with name ‘flight’ in icon set ‘mdicon’ HOT 1
- [Bug] nf-oct-settings missing HOT 1
- [Bug] Evil state icon missing
- [Bug] Icons for Evil states and flymake status are cropped HOT 15
- New mu4e mode `mu4e-modeline-mode` HOT 11
- [Bug] "require: Symbol’s value as variable is void: mu4e-modeline-mode-hook" HOT 4
- Get rid of number next to LSP-mode HOT 1
- [Bug] Flycheck icon is not visible HOT 1
- [Bug] HOT 2
- Feature Request - Improve visuals of doom-modeline-checker when not in simple mode HOT 3
- [Feature Request] Org-noter. Number of annotations on the page HOT 1
- [Bug] How do I enable symbol-overlay counts? HOT 1
- [Bug] GitHub notifications are not showing HOT 11
- [Bug] After #617 6ea0051, the first loading speed becomes very slow, and some icons cannot be right-aligned HOT 1
- Optionally show lsp server info next to the lsp segment icon
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.