Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
36 views

Decoding the cryptic Emacs mode-line

In my mode-line there's a cryptic set of characters like -UUU:@%*--F32 I know I could read through the documentation to figure out what they all mean, but I'd rather just hit a key and have a window ...
0
votes
0answers
24 views

Limit buffer name length with smart-mode-line

I've using smart-mode-line and things work pretty well for most cases. However, I do have some files with quite lengthy filenames, exceeding that of the mode line. I used to limit the buffer name ...
0
votes
1answer
36 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
0answers
10 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?
0
votes
0answers
10 views

Show longer file name in spaceline buffer name

With a long file name, my spaceline buffer name is truncated at 20ish characters. There is room left in the mode line, how can I show more characters? I'd like to either explicitly set the number of ...
0
votes
0answers
32 views

Rotating org clock display in mode line

I am trying to create a function that will rotate between the different options for org-clock-mode-line-total and update the display on the mode-line. This is what I have so far. (defun rotate-list (...
1
vote
1answer
34 views

I'd like a global mode-line in my frame [duplicate]

A previous comment... In the following I'm calling mode-line to the mode-line itself or any of its variations/replacements (e.g. powerline) Statement of the problem In the next picture, you can see ...
1
vote
0answers
34 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 ...
4
votes
2answers
46 views

Toggle button on modeline

How to create a toggle button in the modeline, like a play / pause button ? for now, I've got the following : (setq-default mode-line-format '( (:eval (propertize " ⏸ " ...
0
votes
0answers
68 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
111 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
22 views

Showing only some things in the mode-line

In Emacs, some information I really want to show, such as which-function-mode, is displayed in the mode-line. But it doesn't really show, because there is too much other information displayed there. ...
0
votes
1answer
64 views

mode-line refresh with alerts and weechat

Note - The original post incorrectly diagnosed this as a terminal issue. Further testing showed this not to be the case - the issue is a race condition in the alert package. I've crossed-out the now ...
0
votes
0answers
66 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
1answer
61 views

How to resize vertical split with mouse when using telephone-line instead of mode-line?

According to this StackOverflow answer, one can resize a vertical split with the mouse by dragging the mode-line in a specific spot. I'm using telephone-line and can't find any spot on there to ...
0
votes
0answers
59 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
39 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 ...
3
votes
1answer
196 views

How to display window number in my mode-line?

I use window-numbering package to switch between windows in emacs, however I am struggling to display window number in my mode-line, preferably in [#] format (i.e. [1], [2], [3] ...). What variable ...
0
votes
0answers
75 views

Why is my modeline cutting off text on the right side?

A kind person on reddit lent me a hand with their elisp to configure mode-line to put battery information and time onto the right side. I had decided that I also want to keep a cursor position on the ...
3
votes
1answer
132 views

Show git branch in dired modeline

I would like to see the git branch shown in the dired mode-line at least for the top directory of git projects. Anyone done this or know how to?
0
votes
0answers
27 views

Putting the name of the topic in the mode line

I'm writing a help browser using define-derived-mode that works very much like emacs' info-mode. Almost exactly like it actually. info-mode displays the name of the manual and name of the topic in the ...
0
votes
1answer
117 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-...
2
votes
1answer
447 views

Spacemacs mode-line unicode characters: what do they mean?

I've found it hard to discover the source or meaning of the unicode characters in the mode-line. All questions I've found referencing them are about how to get them to display correctly --- e.g. this ...
0
votes
0answers
33 views

Colorize current agenda task in mode-line

My modeline shows a number of things - time, current line/column, current file, major mode, etc. It also shows the current clocked task in my agenda. However, the text is colorized in a very ...
4
votes
2answers
75 views

Display all/current CSV heading names

In CSV files (especially ones with a lot of columns and/or a lot of rows) I find that it's hard to tell which column I'm on. Normally I'd like to know either the column heading, or sometimes the ...
5
votes
2answers
84 views

local keymap in mode-line doesn't work in terminal

I'm having trouble with getting local keymap:s to work in the mode-line, but only in terminals (with xterm-mouse-mode enabled). This applies to both the standard mode-line entries (like mode-line-...
1
vote
0answers
50 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?
2
votes
1answer
626 views

How can I show the full path to the current file in the mode-line for Spacemacs (Spaceline)?

I'd like to display the full path instead of just the filename itself. How can this be done? So essentially where it says .spacemacs in the below image (seems this mode-line is called "Spaceline"):
0
votes
1answer
68 views

Is there a Magit hook for post checkout?

Unfortunately, the vc-mode in my mode-line is not being updated when checking out a branch, it still points to the older branch. revert all open buffers fixes than but I can't find a hook to attach ...
1
vote
0answers
235 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 ...
5
votes
0answers
60 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 ...
2
votes
0answers
83 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
1answer
74 views

Documentation for mode-line-emphasis and mode-line-interactive

I'm seeing mode-line-emphasis and mode-line-inactive used in color themes to change the mode-line face value for used and unused buffers. describe-function and describe-variable don't have an entry ...
1
vote
1answer
57 views

Indicate remote files in mode-line

Does anybody know how to clearly indicate in the mode-line that I'm working on a remote file (e.g. with the color of the buffer name, model-line background or some small tag). I use tramp to work ...
1
vote
1answer
80 views

Hiding mode-line in speedbar buffer

I would like to hide the mode-line completely in a speedbar buffer. Calling (setq mode-line-format nil) in the buffer works temporarily, but I would like to make this setting permanent. Adding a hook ...
2
votes
1answer
70 views

How to make mode line indicate that a window is dedicated?

I'd like to be able to see visually whether a window is dedicated. Is there a way that I could add this information to the mode line?
1
vote
2answers
90 views

speed up sml-modeline, is this possible?

I really like the package sml-modeline (it is available on melpa): https://melpa.org/#/sml-modeline With it I replaced my vertical scrollbars. But when opening large text files like this Raspbian-...
3
votes
2answers
147 views

Prevent mouse-3 on mode-line from closing the window

From https://www.gnu.org/software/emacs/manual/html_node/emacs/Mode-Line-Mouse.html : mouse-3 on a mode line deletes the window it belongs to. If the frame has only one window, it does nothing. I ...
1
vote
1answer
803 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 ...
0
votes
0answers
98 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 ...
1
vote
0answers
32 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
93 views

How to show a tooltip for the mode-line that displays the full buffer name

Is there a way to show a tooltip that contains the full buffer name when I hover over the buffer name part of the mode line? I'd like to quickly check the full buffer name when I have a narrow frame ...
0
votes
0answers
108 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 ...
3
votes
1answer
114 views

Is there more than mode line (and header line)?

I was wondering if it is possible (with any reasonable amount of work) to add another mode line (i know there is the configurable header line), maybe right above or below the new mode line or even one ...
3
votes
0answers
40 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 ...
0
votes
0answers
278 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 ...
3
votes
2answers
287 views

How to display file size in the mode line

How can I display file size in MB or KB in the mode line? I have the icon for encoding setting, title of the buffer, etc but have no file size in there.
3
votes
2answers
254 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
404 views

How do I change the mode indicators for evil-mode in the spaceline mode line package?

The mode line shows <N> or <I> or <V> and I would like it to show NORMAL, INSERT, VISUAL, etc. I'm new to Emacs so my Elisp skills are non-existent.
2
votes
1answer
402 views

how to change the font of only the minor-modes list in the mode line?

My main font doesn't render the minor modes glyphs correctly, they are smaller, so I wanted to force the glyphs of the minor modes list to use the default source code pro font which renders them at ...