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
0
votes
1answer
441 views

Easy way to give the time its own face in modeline?

Is there an easy way to give the time (as displayed by M-x display-time-mode) a separate face in the modeline? I don't need anything too fancy like powerline, I'd just like to be able to have the ...
0
votes
1answer
364 views

Modeline artefacts around powerline arrows

I'm using vanilla powerline with solarized theme: (require 'powerline) (powerline-center-theme) (load-theme 'solarized-light t) And I get these artefacts (the malformed and sticking-slightly-above-...
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 ;;...
3
votes
1answer
287 views

Show character count for the current line on mode line

I don't know how to display in the mode line a character count for the line I'm currently editing. I tried searching on Google, but nothing came up, only for the whole document or for a selection. I ...
6
votes
2answers
494 views

How to remove the projectile project name after the file name

I am attempting to clean up my modeline due to overcrowding. In my quest I have come across a problem I cannot figure out, namely projectile. By this I mean the project name after the file name, it ...
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....
4
votes
1answer
330 views

?? in the modeline instead of the line number [duplicate]

I have seen posts on the topic of getting "??" in the modeline instead of the line number. However despite my best efforts I can't get rid of the problem. I have put those settings in my config: (...
2
votes
1answer
246 views

How to add branch label next to projectile string with smart-mode-line

This is something I asked on the official repository. By default, smart-mode-line displays the current projectile project-name before the buffer-name, and the vc-mode string after it: ... [P/...
3
votes
2answers
290 views

Modify the modeline to show all emacsclients editing buffer

Is there a way to modify the Emacs modeline so I'll be able to see all the emacsclients or just the number of emacsclients actually editing/displaying the buffer I'm currently working on? I've found ...
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 ...
18
votes
5answers
12k views

How to count characters in buffer including spaces?

I need to see, how many characters contains my text, as I type. I found this pages of Emacs Wiki: Word count, and there is a solution very close to what I need: I used the second solution from this ...
5
votes
1answer
176 views

Increasing the frequency of modeline redisplay

Q: Is there a way to (temporarily) increase the rate at which the mode line is redisplayed? I was trying to write a package that adds a spinner to the mode line (to indicate ongoing operations), but ...
9
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.
1
vote
1answer
678 views

Hook for mode-line changes?

I want to set the title of emacs to be the mode-line when ever it changes. [EDIT] solution: As pointed to by the answer below, (setq frame-title-format mode-line-format) solved things elegantly. ...
3
votes
1answer
682 views

Show colors in mode-line for minor modes

Can't get colors to show up in the mode-line. (eval-after-load "projectile" '(setq projectile-mode-line '(:eval (concat " Pj[" (propertize (projectile-project-...
13
votes
4answers
947 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 ...
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 ...
1
vote
1answer
801 views

How to display date in Julian in the mode line?

The following setting display the date in Gregorian calendar in the mode line. (setq display-time-day-and-date t) (display-time) My question is how to change the above settings for date to be shown ...
4
votes
1answer
4k views

How to display time in seconds in the mode line?

By default display-time-mode shows the time only in minutes. How I can display time in seconds? Something like 18:34:45".
1
vote
1answer
42 views

How to programatically retrieve help strings for mode-line % constructs?

I'm looking for a way to programmatically retrieve documentation for mode-line-format %-constructs; this is part of a little project I'm working on to help with mode-line customization. So for ...
8
votes
2answers
1k views

Display battery information only when unplugged?

display-battery-mode displays battery information, but I only want to use it when my computer is unplugged and running off battery power. Is there a way to set the display mode according to the power ...
21
votes
2answers
340 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 ...
10
votes
5answers
4k 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 ...
6
votes
1answer
568 views

Hide mode-line for minimap buffers

I know that I can hide the modebar for the current buffer using M - : (setq mode-line-format nil) However, I'd like to hide the mode-line for the 'MINIMAP' buffer created by the minimap package, ...
4
votes
2answers
376 views

Reduce the space between elements in modeline

In the demo, there are 6 spaces between main.c (buffer name) and [parse-early_param (from which-func), 4 spaces between which-func and 53%, and 2 or 3 spaces elsewhere. How can I set the space between ...
26
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 ...
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 ...
21
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, ...
7
votes
2answers
926 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 ...
4
votes
2answers
649 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 ...
14
votes
2answers
4k views

Moving the mode line and minibuffer to the top

Is there any way I can move the mode line and the minibuffer from the bottom to the top of the screen? The minibuffer is covered by the previous question How to display the content of minibuffer in ...
11
votes
3answers
3k views

How can I display the parent directory of the current file in the modeline?

I would like to be able to see the location of the current file's parent directory, independent of the current buffer name.
5
votes
2answers
172 views

Info: Display the current node name in the buffer-list or uniquify *info* buffers

Is there a way to get info to display the current node in any of buffer-list/ibuffer/helm-buffers, especially when there are multiple info buffers ? Ideally uniquify should be sufficient to ...
4
votes
3answers
479 views

How to show the sticky(lock) window status in the mode line?

I got the following snippet in my init.el: (define-minor-mode sticky-buffer-mode "Make the current window always display this buffer." nil " locked" nil (set-window-dedicated-p (selected-window)...
7
votes
2answers
489 views

How can I find out exactly what my modeline is telling me?

I'd like to know exactly what my modeline is telling me and how it's derived. Right now, if I'm working with a graphical terminal I can hover over each modeline entry in turn, and if I'm lucky, a ...
5
votes
1answer
958 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 ...
17
votes
2answers
4k views

How can I set different font sizes for buffers and for the mode-line?

I have this line in my init.el file to set the size of the font in all frames: (push '(font . "DejaVu Sans Mono-10") default-frame-alist) It works but i'd like to have a bigger font in all buffers ...
1
vote
2answers
433 views

Origin of some modeline indications: Git:master [i,#]

In my mode line, to the left of where it describes the current modes e.g. (Org company), there is text that looks like [#] or sometimes [i,#], where the i and # signs are highlighted. I don't think ...
104
votes
4answers
41k views

How do I get a fancier mode line that uses solid colors and triangles?

People occasionally post screenshots with modelines that have solid colors and triangles: How do I replicate this effect?

1 2 3
4