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
1
vote
0answers
64 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
205 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
427 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
312 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
1answer
148 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 ...
1
vote
1answer
270 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
340 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 ...
4
votes
0answers
356 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
56 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
670 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 ...
4
votes
1answer
463 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
2answers
244 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
1k 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 ...
5
votes
2answers
228 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
126 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
75 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?
3
votes
1answer
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"):
0
votes
1answer
202 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 ...
2
votes
0answers
405 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
104 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
155 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
187 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
106 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
124 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
144 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
193 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
196 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 ...
3
votes
2answers
3k 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
152 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 ...
2
votes
0answers
53 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
211 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 ...
1
vote
0answers
167 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 ...
2
votes
1answer
182 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
90 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 ...
2
votes
0answers
542 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 ...
2
votes
2answers
704 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
3answers
784 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 ...
2
votes
1answer
844 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
553 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 ...
4
votes
1answer
662 views

What's this line between the modeline and the echo area?

I'm using a dark theme, so it's a bit hard to see, but there is a black line between the modeline and the echo area in the shot above. You can also see it between the modeline and a hydra, and the ...
0
votes
1answer
138 views

Show cut-off line in mini buffer?

When using ECB, the lines for function names are often long and get cut-off in the sidebar: Is there a way to show the full line that the cursor is at in the mini buffer when it is cut off due to its ...
3
votes
1answer
3k views

Changing emacs theme modeline colors

I've installed this great theme atom-one-dark and I love it. However, one thing I'd like to change is the modeline colors. Currently, the grey one is the inactive one and the black one is the active ...
3
votes
1answer
763 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 ...
4
votes
2answers
763 views

How to make buffer name in mode-line be bold when its window is selected? [duplicate]

In Emacs, on the modeline: I would like the name of the currently focused buffer to be bold, but only when its window is selected. My modeline looks something like this: (setq mode-line-format (...
2
votes
1answer
496 views

How to show XPath for current location in an XML hierarchy in the modeline?

When editing a long Maven pom.xml I may see a screen full of <plugin> blocks with their parent tags out of sight. I would like to know whether I'm looking at a /project/build/plugins/plugin tag ...
1
vote
0answers
68 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 ...
2
votes
1answer
205 views

Extra mode line for started todo of org-mode

I have defined an extra todo keyword started in my org-mode config for tasks that I'm currently working on. I only ever have one task that is in the state started. Can I display this task in a ...
4
votes
1answer
409 views

how to direct spaceline to display “Narrowed” in the mode-line?

I'm using Spacemacs, which by default includes spaceline. I'd like the mode-line to indicate whether I'm in a narrowed buffer or not. So when I do org-narrow-to-subtree, for instance, spaceline could ...
4
votes
1answer
603 views

Display max line in bottom line (nox) (aka mode-line)

How can I display the max line of a file in the bar at the bottom? So, how could it say "L1/L1300" instead of just "Top L1", if the respective happens to have 1300 lines?
0
votes
1answer
533 views

Change mode-line size without changing header line

There are several posts and information around for changing the mode-line face properties, like size. I tried them for a smaller mode-line, using: (set-face-attribute 'mode-line nil :height 100) ...