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.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
93 views

Customize modeline to display name of prev/next buffer

As topic says - I'm using tabbar + tabbar-forward-tab to quickly switch between recent buffers right now, but I don't really like it. I'd rather have the names of the previous and next buffer show up ...
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 ...
3
votes
0answers
290 views

Any way to display clock time in the modeline for both the current clock and all accumulated clocks simultaneously?

The variable org-clock-mode-line-total controls whether to show the clocked time of only the current clock or of all accumulated clocks of the current task. However, I'd actually like to show both. ...
3
votes
0answers
85 views

“shared global mode-line info”

There's some stuff in the mode-line that's "global", not particular to that buffer, e.g. date-time-load, org-clock task and erc-track. If split-window-right, that stuff is both duplicated and ...
3
votes
0answers
54 views

Passing advice to mode line

I'd like to advise format-mode-line to collapse whitespace across the whole string. The following attempt does not work for me. (advice-add 'format-mode-line :filter-return 'collapse-whitespace) ...
2
votes
0answers
283 views

Display mode-line on multiple lines

How do I set the mode-line to display using multiple lines, as required (or even statically), to fit in all of its contents?
2
votes
0answers
54 views

How can I prevent the modeline from covering up the last line of some prompts/buffers in the bottom?

When I use some commands that display a buffer in the bottom which prompts some additional info, my mode-line is covering up the last line (or part of it). Is there a way to turn off the mode-line in ...
2
votes
0answers
149 views

Display projectile root in spaceline mode line

I use spaceline configured in the following way; (use-package spaceline :ensure t) (use-package spaceline-config :ensure spaceline :config (spaceline-helm-mode 1) (spaceline-emacs-theme)) ...
2
votes
0answers
49 views

mode-line-inactive after system window loses focus

When a system/X11 window (frame) with Emacs loses focus, how can I make its mode line become mode-line-inactive? It stays active, keeping the standard mode-line look/face… Shouldn’t it be the default?...
1
vote
1answer
44 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
0answers
67 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 ...
1
vote
0answers
77 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 ...
1
vote
1answer
122 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 ...
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 ...
1
vote
0answers
58 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.
1
vote
2answers
120 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, ...
1
vote
0answers
69 views

Why in shell mode not show row/column number in mode line?

Emacs 26.1 I use smart mode line https://github.com/Malabarba/smart-mode-line. Here result: As you can see in scratch buffer show row/column numbers. But in shell mode not. Why? How I can fix this?
1
vote
0answers
55 views

scrolling text in the mode-line

Since the mode-line space is precious, I'd like to display some information in a fixed size area (60 char for example). To do so, I'd like the text to scroll, like when music players display music ...
1
vote
0answers
67 views

Restrict Mode Line display to window

I am configuring mode-line and currently the time is displayed in each window's mode-line, as shown by the image below. Is it possible to restrict the time display to the bottom right mode-line?
1
vote
0answers
387 views

How to display current task and running clock in modeline

I started using org-mode's clocking commands for tracking how I spend time at work. While the clock is running, the current task is shown in the mode line, along with the title of the task, but only ...
1
vote
0answers
157 views

How to highlight in the mode-line that a compilation process is running in AUCTeX?

As compiling LaTeX documents can take a while, I would like to be able to quickly and effortlessly check whether the compilation process is still runing. How can I achieve this with AUCTeX? I know I ...
1
vote
0answers
485 views

mode line time not updating

I'm using powerline for my modeline and I have placed a clock within the modeline. This clock is only updating when I'm within that buffer, if I have another buffer up the clock freezes until that ...
1
vote
0answers
65 views

How to change mouse pointer in mode line or header line?

The mouse pointer shape changes whether its over the buffer, over the mode line, or header line, if that exists. How can I change the mouse pointer shapes for these different areas to something other ...
1
vote
0answers
441 views

Some spaceline questions

So, I'm trying out spaceline, I have a few problems I can't figure out. My segments does not display correctly, there is a weird display conflict that look like small boxes between each segment, is ...
1
vote
0answers
71 views

Display dropbox status

I would like my emacs to call dropbox status every 30 seconds and display whether Dropbox is up-to-date at the bottom of the buffer (where info such as the line-number and file name is). How could ...
1
vote
0answers
170 views

Powerline: display selected window's mode line in all windows

I know this is a slightly odd request, but I'd like to make all the mode lines for windows within a frame identical. I'm using powerline with the default spacemacs theme. So, if I have three windows ...
1
vote
1answer
236 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
25 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
17 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
6 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 ...
0
votes
0answers
101 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
10 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? ...
0
votes
1answer
27 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
0answers
39 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-...
0
votes
0answers
18 views

How to show waka mode time in emacs mode line?

I setup the waka time to monitor my usage successfully. However, the mode line only shows "waka" and nothing on the amount of time I spent using Emacs. To get the statistics, I have to login to Waka ...
0
votes
0answers
37 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
52 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
0answers
56 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 ...
0
votes
1answer
140 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%) ...
0
votes
0answers
337 views

View CPU and memory usage in mode line

How can I configure Emacs so that it displays CPU and memory usage in the mode line? The package mode-line-stats does this, but it has not been developed for several years, and it has not been ...
0
votes
0answers
278 views

Which mode-line package(s) is/are most extendable?

My question: Hi, lately I've been looking into various mode-line customization packages such as Smart Mode Line, Powerline, Spaceline, or Telephone Line. I'd like to write a package that works ...
0
votes
0answers
146 views

Sending command from bash in shell-mode, and knowing buffer name

My specific goal is setting 'vc-mode from the $PROMPT1 snippet so that the mode line will show useful VC info in shell-mode. I can use emacsclient -e '(setq vc-mode "foo")' but that's not quite ...
0
votes
0answers
84 views

How can I get the mode line to look like the one used in this screen shot?

I've been using powerline, but this doesn't look anything like it. and just in case anyone is curious the theme in the picture is this one: https://github.com/emacsfodder/emacs-soothe-theme
-1
votes
1answer
65 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?