Questions tagged [mode-line]

The mode line is a useful summary information about the buffer shown in the window, including its name and current modes. It is located at the bottom of every Emacs Window aside from MiniBuffer windows.

Filter by
Sorted by
Tagged with
2 votes
1 answer
45 views

Emacs mode line minimalist

i have a config for minimalist mode line, its the next; (setq column-number-mode t) (setq mode-line-percent-position nil) (setq mode-line-modes (mapcar (lambda (elem) (pcase elem ...
user avatar
  • 21
1 vote
1 answer
23 views

How can I get doom-modeline to show the correct number of new emails?

Doom-modeline has a feature where it shows the number of new emails you have. But for some reason, they're capped at 99, so the modeline always shows 99+, no matter what. How can I get this to show ...
user avatar
  • 485
0 votes
3 answers
82 views

How to hide/remove some texts in emacs mode-line?

I've emacs modeline as below I want to hide some text such as Lisp Interaction : WC ivy Projectile Eldoc from modeline . I want to leave other as it is and dont change those . How can i do this?
user avatar
3 votes
1 answer
50 views

Is there a way to emulate spacemacs's modeline with numbers to help jump between windows?

I've been looking into rebuilding my config from scratch and used to use spacemacs. One thing I really liked was spacemacs's modeline that marked windows with a number and allows you to jump between ...
user avatar
  • 902
2 votes
1 answer
61 views

How can I apply diminish to apheleia-mode

I am using diminish for minor modes. But I was not able to apply it for apheleia-mode. (apheleia-global-mode +1) (with-eval-after-load 'apheleia (setf (alist-get 'isort apheleia-formatters) '...
user avatar
  • 1,076
0 votes
1 answer
33 views

Only show coding-system in mode-line when not utf-8-unix

I’m trying to save space in my mode-line. 99% of the files I edit are in UTF-8 format with Unix line endings (coding system utf-8-unix). I don’t need the ‘U’/‘U:’ indicator in my mode-line in these ...
user avatar
  • 133
1 vote
0 answers
22 views

How to automatically hide mode line by detecting frame size?

Hide mode-line would be more compact for a narrow sub-frame like this: For now, I'm using doom-emacs and binding keys like SPC t m to hide the mode-line, This just works but, I want to ask, Is it ...
user avatar
  • 11
1 vote
1 answer
81 views

How to prevent the mode line color from changing after the buffer is switched?

like this: The mode line color of the current buffer is darker, I hope the color will not change.
user avatar
1 vote
1 answer
71 views

How to show the remaining disk space in the modeline?

I might using the wrong search terms, thus I'm asking for this here: How can I have modify my modeline to display my remaining disk space? Currently I have to open a terminal in order to enter: $ df -...
user avatar
  • 617
2 votes
1 answer
99 views

How does eldoc (>= 1.1.0) display arguments in the mode-line during eval-expression

I am unable to determine how eldoc is displaying arguments (or other information) in the mode-line while eval-expression is reading user input in the minibuffer. I could not find a relevant element in ...
user avatar
  • 24.3k
1 vote
0 answers
81 views

How can I show (e.g in the mode-line) the current keyboard layout?

Linux Mint 20.2 Emacs 27.2 I have two Keyboard Layouts: US, RU. Example of input text on 2 languages: Is it possible, in mode-line to print current keyboard layout? E.g. US. The ideal to show ...
user avatar
  • 3,435
1 vote
0 answers
41 views

How do I set the mode-line "box" property to be the same color as the "background" (running emacs daemon)

I'm trying to set the "box" property (the border) of my mode-line to match whatever the background color is. Here's what I've tried to do: (add-to-list 'after-make-frame-functions (...
user avatar
  • 11
0 votes
1 answer
32 views

vc-mode doesn't evaluate when mode-line-format is set with setq-default

I've this code in my init.el (setq-default mode-line-format (list (propertize " %b " 'face 'bufname) (propertize (concat "...
user avatar
  • 3
2 votes
1 answer
32 views

How can I copy the faces of a window's mode-line to its header-line?

I want to move my mode-line to the top of each window. So, I've copied its contents into the header-line. (setq-default header-line-format mode-line-format) (setq-default mode-line-format nil) But, I'...
user avatar
  • 123
0 votes
1 answer
43 views

How to get rid of "Compiling" message stuck on mode line?

For some reason it's always showing Compiling, even if there is no compilation. I found the answer, I post this question to record the solution for it
user avatar
  • 1,058
2 votes
1 answer
79 views

How to display atime, ctime and mtime of a file in the modeline?

The modeline at the bottom already displays valuable information about the current buffer, like the EOL type (LF), the encoding (UTF-8)… Now when I open a file, I would find it very handy to also ...
user avatar
1 vote
1 answer
73 views

How can I have the lighter of a minor mode be colored /propertized)?

How can I colorize/propertize the lighter of a minor mode in the mode line?
user avatar
1 vote
1 answer
103 views

How to change the size on mode-line horizontal line

I am running emacs version GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19, on Ubuntu 20.04 on a laptop with 4K display in 200% scaling mode (...
user avatar
  • 111
0 votes
1 answer
35 views

How to customize the rendering of the straight lines in mode line?

Here are two examples of what I mean: The lines are rendered in a different color as the background, so they are clearly seen: The lines are rendered in the same color as the background, so they can ...
user avatar
  • 2,049
2 votes
1 answer
181 views

How do I remove all the trailing dashes in the mode line of terminal Emacs?

In terminal Emacs: Look at the mode line. Notice that there are lots of dashes (hyphen-minuses, to be precise) (-----) at the end of the mode line (after "(Lisp Interaction)"). How do I ...
user avatar
  • 553
3 votes
1 answer
88 views

Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
user avatar
0 votes
1 answer
68 views

Is there a general way to delay computing & displaying mode-line text?

Some things I'd like to show in the mode-line are quite expensive to compute, so I'd rather use an idle timer. Is there a general way to do this? or does this need to be added individually? (using a ...
user avatar
  • 7,179
2 votes
1 answer
223 views

Disable Evil-mode's state indication on mode line

How do I disable evil-mode's state indicator on the mode line? I don't want to see anything like <N>, <I>, <V> on my modeline.
user avatar
0 votes
0 answers
45 views

Fontify parts of the mode-line

How do I most conveniently fontify/colorize parts of my mode-line. Specifically I want the vc branch named to have one color for master and another for other branches.
user avatar
  • 415
1 vote
2 answers
249 views

Colored string in mode line

I have: (setq mode-line-end-spaces "string") That displays string in the mode-line. How can I get string in red there?
user avatar
0 votes
1 answer
49 views

How to show C/C++ doxygen section titles in the mode-line?

For C/C++ code that use doxygen sections, it would be useful to show these in the mode-line, without slowing down the mode-line display significantly. Is there a good way to add context information to ...
user avatar
  • 7,179
1 vote
1 answer
100 views

How to measure the performance of the mode-line?

Currently when making changes to the mode-line, I try to write efficient elisp, However I don't know for sure if what I'm doing is in fact efficient. How could I test the mode-line performance? For ...
user avatar
  • 7,179
0 votes
1 answer
26 views

How can I display desktop-dirname in the modeline (or elsewhere)?

I often get confused about the current desktop I'm using. Currently, I have to call (display-variable desktop-dirname) to see in which desktop I'm working. It would be much nicer, if the current ...
user avatar
3 votes
1 answer
130 views

How to disable changing the current buffer by clicking buffer name in mode line?

I find myself accidentally clicking the mode line when trying to focus a buffer with the mouse. This causes the buffer to change. I don't want that behavior. I want nothing to happen. The culprit ...
user avatar
  • 3,885
0 votes
0 answers
64 views

Mode-line Directory Path Display

Was seeking here a way to show in mode-line the full path of directory, as the answered question bellow: How can I show the full path to the current file in the mode-line for Spacemacs (Spaceline)? ...
user avatar
2 votes
2 answers
1k views

How to use doom-modeline in spacemacs?

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 ...
user avatar
  • 135
1 vote
1 answer
300 views

Multiline mode-line using dynamic generated text images

I've been doing experiments at displaying static text images in the mode-line using Imagemagick to generate the image (see below). I would like now to generate such an image in a dynamic way, ...
user avatar
0 votes
0 answers
26 views

How to detect modified buffer in the mode-line, skipping special buffers?

I'm trying to have my mode-line to display a "(modified)" string instead of the * mark. To do that, I make a test with buffer-modified-p but this seems to be always true for "special" buffers as well (...
user avatar
1 vote
2 answers
66 views

Strange behaivor counting lines in hooks `find-file-hook` or `text-mode-hook`

For me, the clearest measure for the size of a file is its number of lines. So, I want this information in my mode line. I am using Doom emacs and, even I could define my own mode line, for such a ...
user avatar
  • 81
1 vote
0 answers
422 views

Activate doom mode line theme on non doom theme

I would like to use a non doom theme on Emacs but I like the doom mode line. The problem is if I use a non doom dark theme, say Charcoal-Black, and activate doom mode line, then doom mode line is ...
user avatar
  • 285
0 votes
2 answers
235 views

How to display a python string in the modeline?

I'm using a python script to get my monthly bandwith usage shown as string on the terminal stdout. How can I display & update it periodically in the modeline?
user avatar
  • 617
2 votes
1 answer
455 views

Place time displayed in the begginning of modeline

I installed doom-emacs and modeline displayed as How could place the time 10:55 AM in the beginning, since if more windows opened and arranged horizontally, the directory name are so long enough to ...
user avatar
  • 1,089
2 votes
3 answers
732 views

Display word count in modeline without lag

Problem Stopped using wc-mode as it is not snappy anymore (as text writing usually is) with text document of 10k words. It appears that it counts the whole buffer after every change which seems to ...
user avatar
1 vote
2 answers
456 views

Doom Emacs does not display wordcount

Running Doom Emacs 2.0.9. If I make a selection, I can see the word-count. This is as expected because doom-modeline-enable-word-count is set to t. However, I was expecting to see a word-count as I ...
user avatar
  • 1,668
1 vote
1 answer
48 views

Coloured active mode line only when many windows

I am reluctantly using a coloured active mode line to distinguish it from inactive mode lines, but it occurred to me that it might be possible to reserve its colouring for times when there are more ...
user avatar
  • 2,934
1 vote
0 answers
51 views

Git status on modeline to indicate if behind remote?

Can I get Emacs to indicate on the mode-line whether a push is needed, i.e. whether the repo is out of sync with origin? I've already got it telling me if a commit is needed using vc-status, but that ...
user avatar
  • 121
0 votes
1 answer
285 views

which-function-mode and modified mode line

I modified my mode-line, but now which-function-mode stopped working: nothing is displayed. Code: (setq mode-line-position (list '(:eval (propertize "L%l " 'face nil 'help-echo "Line number")) ...
user avatar
  • 185
1 vote
1 answer
1k views

How do I change the font color of mode-line?

How do I change the font color of the mode-line to make it more visible?
user avatar
0 votes
0 answers
78 views

Disable spaceline on certain terminals

I'm using spacemacs for the convenience of largely not having to maintain my own emacs configuration, after 25 years of emacs use. For graphical frames and high-color unicode terminals, the fancy mode-...
user avatar
  • 185
1 vote
0 answers
166 views

How to show page number using pdf-tools in emacs mode line?

As title said, is there a way to have page number shows up in the mode line of emacs? I am not using any fancy power-line, this is stock emacs mode line.
user avatar
  • 285
1 vote
1 answer
174 views

How to change what modeline displays, based on major mode?

i know i can change what info to display in modeline in mode-line-format variable. But how to display mode-line-position for one mode, but not display it for another?
user avatar
  • 11
1 vote
2 answers
194 views

How to efficiently include a repository relative path in the mode-line?

Currently in the mode-line the filename %f, is absolute. I would like to have the path relative to the version-control root, without having to find this every redraw. How could this be cached, ...
user avatar
  • 7,179
0 votes
1 answer
90 views

is it possible to have a "calc embedded" indicator in doom-modeline?

this is indispensable, since I use "calc embedded" in auctex and need to leave this mode after have activate it.
user avatar
  • 1,710
0 votes
1 answer
84 views

Powerline mode-line menues in terminal mode

When inside terminal mode (emacs -nw) I can open the menu using M-F10 in terminal mode. Is there a similar possibility for the powerline mode-line menue on the bottom of the window?
user avatar
-1 votes
1 answer
114 views

How to make emms only show the name of the current file being played without the path

In the mode line, emms shows the full path to the file being played, how do I change that?
user avatar