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
7
votes
3answers
2k views

Customize vc-mode appearance in mode-line

I use vc-mode to show information about the current VC state in my mode line, like this: (setq mode-line-format '(… (vc-mode vc-mode) …)) However, I find the default format of vc-mode pretty verbose....
1
vote
0answers
198 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 ...
0
votes
1answer
58 views

Evil, How do I display visual range in mode-line

I'd like to see the size (number of rows and/or columns) of the visual selection in my mode-line. I use evil. How do I do that?
0
votes
1answer
167 views

How show % near rows and columns in mode line?

Emacs 26.1 I use smart mode line: https://github.com/Malabarba/smart-mode-line Here result: Nice. It's work fine. But I need to show % near rows and columns. Something like this: 712:93 (17%) ...
1
vote
1answer
32 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 ...
0
votes
1answer
29 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.
0
votes
2answers
233 views

Diminish flyspell

How can I diminish flyspell-mode (the one built-in to emacs)? With use-package, none of the following work: (use-package flyspell-mode :diminish) (use-package flyspell-mode :diminish 'flyspell-...
1
vote
1answer
193 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
42 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.
1
vote
2answers
150 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?
1
vote
1answer
56 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 ...
1
vote
2answers
129 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, ...
0
votes
1answer
20 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 ...
9
votes
4answers
3k views

How to right align some items in the modeline?

Given the following modeline configuration: (setq-default mode-line-format (list ;; Current buffer name "%b " ;; Major mode "[%m] " ;; Modified status "[%*] " ;; Cursor ...
1
vote
1answer
231 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, ...
3
votes
1answer
83 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 ...
3
votes
2answers
3k views

How show full path to file?

Windows 10, Emacs 25.1. Suppose I open file D:/temp/test/myfile.txt. But in the in the mode line show only file name (myfile.txt). But I need to show FULL path to file: D:/temp/test/myfile.txt ...
26
votes
9answers
7k views

Hide list of minor modes in mode-line

I use quite a few minor modes and usually I know which minor mode is enabled in every major mode. If I really want to see the full list, I can run C-h v minor-mode-list. At the same time, my mode ...
0
votes
0answers
32 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)? ...
0
votes
0answers
20 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 (...
0
votes
0answers
11 views

Make flycheck-color-mode-line active on buffer not active & emacs not focused

I installed flycheck (I usually used flymakes) as well as different other packages associated to it. One of them is flycheck-color-line-mode which change the color of the mode-line according to the ...
1
vote
2answers
44 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 ...
1
vote
0answers
134 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 ...
3
votes
1answer
105 views

Variable's value in mode-line?

I have this function that sets the isearch-filter-predicate variable to a predicate (function) from a list of predicates: (defun set-isearch-filter-predicate () (interactive) (unless (boundp '...
9
votes
2answers
1k views

Make the mode-line display percentage and not “Top/Bottom/All”

Mode line's %p displays the percentage of the current view of the buffer: %p The percentage of the buffer text above the top of window, or ‘Top’, ‘Bottom’ or ‘All’. Note that the default mode ...
0
votes
2answers
88 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?
3
votes
3answers
714 views

Show current org-mode outline position in modeline

I'm using org-mode with really huge files (what I love in org-mode is having everything in a single file). I would like to know where I am in the file by having a look at the modeline. If I have the ...
1
vote
1answer
90 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 ...
0
votes
0answers
131 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 ...
0
votes
0answers
12 views

Why do Bongo icons show up in GNOME but don't show up from window manager?

When I start bongo from GNOME using the leuven theme (load-theme 'leuven), I can see the icons quite clearly: From the Window manager I instead see: What is GNOME doing to let me see these icons? ...
9
votes
2answers
842 views

How to append string that get's updated to mode line?

I would like to append some information (that changes over time) to the mode line format and then use it in the title. My thought being is that once a minute I would set the frame-title-format to be ...
1
vote
0answers
28 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 ...
0
votes
1answer
128 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")) ...
0
votes
1answer
477 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?
0
votes
0answers
48 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-...
1
vote
1answer
65 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?
1
vote
0answers
77 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.
6
votes
2answers
1k views

How to re arrange things in mode line?

I have installed nyan-mode and mode line looks like this. I would like to move nyan cat to end of mode line and arrange all other items like column number, file name, modes to left side leaving empty ...
0
votes
1answer
464 views

How to :delight major mode strings when using powerline with use-package?

I am unable to :delight major mode strings (in the mode-line) from use-package because I am intializing powerline with use-package itself. My guess is that the :delight'ing part occurs at the wrong ...
0
votes
0answers
38 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.
0
votes
1answer
59 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?
4
votes
2answers
567 views

How to make mode-line text look like a link/button on hover

What face/text/other property should I use to have mode-line text look like a button/link/stuff to click on while I am hovering over it with the cursor? Some examples: different background, 3D-like ...
-1
votes
1answer
76 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?
2
votes
2answers
99 views

Show current ispell dictionary in modeline

FlyCheck had dynamic modeline that shows real-time errors information: FlyC:0/21 How to have the similar ability for flyspell, to show the current dictionary used in the current buffer, the info ...
4
votes
1answer
445 views

how can I fix incorrect character width?

Emacs is telling me that a certain character only takes up 1 column, even though it clearly takes up two? Is there a way I can fix this? The reason is that I'm doing some calculations in order to "...
3
votes
0answers
38 views

How to advise code to keep popup menus within frame?

How to advise code that pops up menus (like the ones you get by left-clicking a major-mode indicator in the modeline) to stay within the current Emacs frame? Background: Probably this is a bug within ...
6
votes
2answers
796 views

display in the mode-line the number of characters in the selection

I'm used to have display of the number of selected characters in the mode line when there is an active selection (in vim). Is it possible to achieve this in emacs? I managed to display the column ...
1
vote
1answer
253 views

Mode line overflow/interference with Spaceline

I am using Spaceline with the following configuration: (use-package spaceline-config :config (setq-default mode-line-format '("%e" (:eval (spaceline-ml-main))) powerline-default-separator ...
0
votes
0answers
60 views

strange minor modes and how to diminish them

I am working in a python file and thought I have diminished all modes accordingly, also yapfify. However, that does not seem to be the case as one can see in the screenshot. What are those cryptic ...