The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [mode-line-format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Show only major mode in the modeline but keep it clickable

If I use "%m" in the modeline, it shows only major-mode, but it isn't clickable anymore. What other ways are there?
0
votes
0answers
42 views

Change the color of the file-name as it appears on an Emacs buffer mode line

I just downloaded the hemisu theme for Emacs which works very nicely. One flipside of the theme is that the file-name shows up in very lightly colored letters, and so becomes difficult to read. This ...
0
votes
1answer
44 views

s-replace filename in mode-line-format

Trying to trim off some of the path in the filename in mode-line. I now get /share/Projects/<project_name>/... trying to trim off the prefix /share/Projects In my .emacs file: (setq-default ...
4
votes
2answers
133 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 " ⏸ " ...
2
votes
0answers
178 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
1answer
399 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 ...
1
vote
0answers
65 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
152 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 ...
3
votes
1answer
766 views

Remove load average from time string displayed in mode-line

I like to show date and time in the mode-line. I currently have this in my .emacs file: (setq display-time-day-and-date t) (setq display-time-format "%I:%M %p %e %b %y %_5j") (display-time) How do ...
0
votes
1answer
372 views

How to :delight major mode strings when using powerline with use-package?

I am unable to :delight major mode strings (in the mode-line) from use-package because I am intializing powerline with use-package itself. My guess is that the :delight'ing part occurs at the wrong ...
2
votes
1answer
673 views

How to customize Helm buffers' mode-line

I'm trying to customize Helm buffers' mode-line. I have set mode-line-format with powerline package: (setq-default mode-line-format '("%e" (:eval (let* ((active (powerline-selected-window-...
1
vote
1answer
29 views

Styling the “sorting turned OFF” modeline message in *Bookmark List* buffer?

I'm using bookmarks+ and smart modeline and have gone some way to styling the modeline and the Bookmark List buffer. I'd like to change the appearance of the modeline message "sorting turned OFF" in ...
3
votes
2answers
175 views

Modify the buffer name in the modeline

Helm-mini displays a yellow @ when a file or buffer is remote (in my case accessed via tramp/ssh), which I find quite handy. I'd like to add such a marker to the buffer name part of my modeline, but I'...
1
vote
1answer
2k views

How to show git repo status info in mode-line

Here is my current custom, but I don't know how to customize its face. And it only shows branch name, no other status info. (setq-default mode-line-format (quote ((:eval (if vc-mode (...
4
votes
1answer
2k 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 ...