Questions tagged [modeline]

The mode line is a feature of some text editors and source control systems. It provides useful summary or contextual information for an associated buffer or file.

Overview

The mode line is a feature of some text editors and source control systems.

It provides useful summary or contextual information for an associated buffer or file.

Vim modeline

In Vim, the modeline is an annotation at the beginning or end of a text document to configure the editor for that document

Emacs modeline

In Emacs, the modeline is shown in the window, including its name and current modes. It is located at the bottom of every Emacs Window aside from MiniBuffer windows.

Here is a screenshot that shows a windows with it's mode line (the gray bar at the bottom):

The mode-line

For complete information on the contents of mode lines, see mode line in the EmacsManual. The information in a mode line usually includes the following:

  1. Whether or not the buffer has been modified:
  • ** – modified since last save
  • -- – not modified since last save
  • %* – read-only, but modified
  • %% – read-only, not modified
  1. Buffer name.

  2. The name of one or more MajorModes or MinorModes of the buffer

  3. Line number of the TextCursor (and Point), and perhaps the column number.

  4. Position in buffer:

  • Top – the beginning of the buffer is shown in the window
  • Bot – the end of the buffer is shown in the window
  • All – all of the buffer is shown in the window
  • a percentage – percentage of the buffer above the top of the window.
  1. Coding system of the buffer.

  2. End-of-line translation.


Sources: ModeLine | Emacs Wiki

51 questions
0
votes
1 answer

how to load a .vim file on a mode line

For a few specific files I need a set of mappings, which I don't want to be active in my ~/.vimrc file. So I defined them in a file XXX.vim. How can I load XXX.vim on a mode line and where should it be placed in my .vim directory?
Wybo Dekker
  • 132
  • 6
0
votes
1 answer

Activate VIM folding markers via modeline

I'm trying to figure out why folding doesn't work with multi-line comments and I have no ideas. Let's consider such example: #include #include void panic(void) /* {{{ */ { abort(); } /* }}} */ void say_hello(void) /* {{{…
serghei
  • 3,069
  • 2
  • 30
  • 48
0
votes
1 answer

Mode line will not redraw properly

Customizing my emacs modeline and after adding box with positive line width, I start seeing line number and column number redrawn on top of each other, like this: As you can see in the picture I have line-width of 3 for the box. If I try to reset…
webdive
  • 87
  • 9
0
votes
1 answer

How to correct the shape of the separator in modeline, when using spaceline?

My mode-line has problems when changing the shape of the separator, when using the spaceline package which has powerline as a dependency. It applies the change of shape of the separator but the colours are not right. Is there a way to fix this? I…
Fernando Ania
  • 368
  • 1
  • 6
  • 20
0
votes
2 answers

How to show RVM info into emacs mode-line?

Hey guys I need to see my ruby version and gemset name in emacs mode-line. Do you know how to do it?
squiter
  • 5,711
  • 4
  • 24
  • 24
0
votes
2 answers

#vim: set only sort of working

I have .zsh-theme files (from oh-my-zsh), but they are not syntax highlighted. I was able to get this done pretty easily with autocmd BufEnter *.zsh-theme set filetype=sh However, before I did that I tried adding a vim meta comment for a specific…
Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
1 2 3
4