We changed our privacy policy. Read more.

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

A faster method to obtain `line-number-at-pos` in large buffers

The function line-number-at-pos (when repeated about 50 times) is causing a noticeable slow-down in semi-large buffers -- e.g., 50,000 lines -- when point is near the end of the buffer. By slow-down, ...
23
votes
1answer
3k views

What piece of code in Emacs makes `line-number-mode` print "??" as line number in buffers with long lines?

I'm using line-number-mode to have an indicator of the current line in my modeline, however for large files or rather, files with long lines, it starts displaying two question marks instead of a line ...
11
votes
1answer
1k views

Show something in active mode line instead of all mode lines

I set up an org-timer indicator in the mode line with this. (setq-default mode-line-format (quote ( ;; org-timer (:eval (unless (not org-timer-countdown-timer) (propertize (let* ((...
10
votes
2answers
1k views

Transiently adjust text size in mode line and minibuffer?

When working with others around a shared monitor or via screen-sharing (e.g. Google Hangout), I often use text-scale-adjust (C-x C-+) to let others more easily read my screen. I would love to be able ...
13
votes
4answers
961 views

Make a new frame with only mode-line

I want to create a new frame that contains nothing but the mode-line. Especially not a file buffer. Why do I need this? I use org-mode's clocking to time my work. Org-mode displays the timer for the ...
5
votes
1answer
4k views

How to customize mode-line-format?

I want to customize mode-line-format using if or cond etc., to let it show different text conditionally. Here is a demo that I tried: (setq-default mode-line-format (quote ( (:eval (cond ...
3
votes
2answers
487 views

How to get the window for mode-line-format?

I'd like to customize the mode line with my own faces, depending on whether a particular window is selected or not. Let's say I have this: (setq-default mode-line-format '((:eval (...
2
votes
1answer
3k views

How to show org-clock (and org-pomodoro) timer in mode-line?

I tried the following methods in my custom mode-line, but they all failed. (setq mode-line-format (:propertize ;; TODO: concatenate the long string. ;; global-mode-string ;;...
1
vote
2answers
2k views

Remove red border from modeline

I have a red border around my modeline, and I don't like it. How can I get rid of it? Emacs 24
27
votes
9answers
8k 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 ...
21
votes
2answers
348 views

Display list of words along bottom of frame?

I'd like to display 3 lists of words on separate lines horizontally along the bottom (although top would work too) of every emacs frame I have open. I've thought of 6 ways to do this, and they all ...
9
votes
2answers
1k 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 ...
10
votes
2answers
2k views

Single mode line for all windows

Is it possible to have only one mode line (sometimes referred as "statusbar") for all windows? I'd like to make this single mode line show information about the currently selected buffer.
6
votes
4answers
1k views

Make names of major modes shorter in the mode-line

I want to make names of major modes shorter. No longer than three characters. Is there any packages that do something like that? It's better to shorten mode names in automatic fashion, so one doesn't ...
5
votes
2answers
409 views

Temporarily show a message in the modeline?

How can I print a message for a period of time to the mode line and restore the default format afterwards?
3
votes
2answers
2k 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"):
9
votes
1answer
780 views

Can I show a clock in the echo area?

Most of the time my echo area sits empty while the modeline of each of my windows displays plenty of redundant redundant information (current time, system load, and various other buffer-independent ...
5
votes
1answer
975 views

How can I see total time today on _all projects_ in the modeline?

The variable org-clock-modeline-total gives me several options for what time to show in the modeline, but they limited to time clocked into the current task. I would like to show the total time clock ...
5
votes
2answers
134 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-...
4
votes
3answers
4k views

Show the full path to the 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 ...
3
votes
1answer
867 views

Fast/efficient way to keep a running word count

I am trying to implement a minor mode that displays in the modeline the current word count and the number of new words since the file was last opened. There are some existing implementations with ...
2
votes
1answer
192 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 ...
2
votes
1answer
236 views

Sort minor-mode-alist alphabetically (in the mode-line) using :lighter

Q: How to sort the minor-mode-alist alphabetically (in the mode-line) using the :lighter as the criteria for alphabetization. Rough draft that does not work: (setq mode-line-format '( (:eval ...
1
vote
2answers
212 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?
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 ...