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.

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
123 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 ...
4
votes
0answers
448 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?
3
votes
0answers
43 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
425 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
92 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
55 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
1answer
51 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 ...
2
votes
0answers
57 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
436 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 ...
2
votes
0answers
168 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
56 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
0answers
27 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 (...
1
vote
0answers
340 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
42 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 ...
1
vote
0answers
41 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
119 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
166 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
75 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
84 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
80 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
174 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
606 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
69 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
474 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
74 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
180 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
293 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
40 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 ...
0
votes
1answer
26 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
0
votes
0answers
9 views

Is there a way to set different background colors based on buffer name / file path?

I'd like to have a visual marker that is impossible to miss to show when I am viewing a file under a particular directory. Just having the path in the modeline is not enough to avoid confusion ...
0
votes
0answers
21 views

Display time in the mode line before the list of active (sub-)modes?

Currently my mode line looks the image below. But the time displaying will be pushed beyond the right window edge once too many sub-modes are enabled. Wish to limit the size of the mode list part, or ...
0
votes
0answers
19 views

spaceline (modeline) truncate filename directory

I believe I've seen a type of abbreviation with some(?) modeline packages that I'd like to implement in spaceline (I'd be willing to switch modelines for a good reason). I want to abbreviate the ...
0
votes
1answer
57 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 (...
0
votes
0answers
39 views

How to show just one minor-mode in modeline

When I'm writing I really only want to see the word count, and ultimately that's the problem I'm trying to solve. There's a modeline indicator that, but to see it, I have to see all the other minor ...
0
votes
1answer
47 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{...
0
votes
0answers
40 views

How can I shorten the buffername in (smart) mode line?

I like to shorten the buffername in mode-line to a specific number of characters. I am using the following code to do it, (setq-default mode-line-buffer-identification (list -20 (propertized-buffer-...
0
votes
0answers
44 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.
0
votes
1answer
38 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
45 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
24 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
67 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
64 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
0answers
68 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
263 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
520 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
347 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
164 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
93 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
97 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?