Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.81 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.81 KB

N Λ N O Modeline

Nano modeline is a an alterntive to the GNU/Emacs modeline. It can be displayed at the bottom (mode-line) or at the top (header-line). It is roughly organized as:

[ status | name (primary) secondary ]

There are several modelines that can be installed on a per-mode basis or be made the default one. Currently, only the prog and text mode are generic enough to be made the default. You can also design your own modeline using the various elements composing a modeline. See sources for several example.

Installation

Install with M-: (package-install 'nano-modeline)

Usage example:

(add-hook 'prog-mode-hook            #'nano-modeline-prog-mode)
(add-hook 'text-mode-hook            #'nano-modeline-text-mode)
(add-hook 'org-mode-hook             #'nano-modeline-org-mode)
(add-hook 'pdf-view-mode-hook        #'nano-modeline-pdf-mode)
(add-hook 'mu4e-headers-mode-hook    #'nano-modeline-mu4e-headers-mode)
(add-hook 'mu4e-view-mode-hook       #'nano-modeline-mu4e-message-mode)
(add-hook 'elfeed-show-mode-hook     #'nano-modeline-elfeed-entry-mode)
(add-hook 'elfeed-search-mode-hook   #'nano-modeline-elfeed-search-mode)
(add-hook 'term-mode-hook            #'nano-modeline-term-mode)
(add-hook 'xwidget-webkit-mode-hook  #'nano-modeline-xwidget-mode)
(add-hook 'messages-buffer-mode-hook #'nano-modeline-message-mode)
(add-hook 'org-capture-mode-hook     #'nano-modeline-org-capture-mode)
(add-hook 'org-agenda-mode-hook      #'nano-modeline-org-agenda-mode)

To make a specific mode the default one, you can type:

(nano-modeline-text-mode t)

Currently, only the prog and text mode are generic enough to be made the default.

Screenshots (using N Λ N O theme):