项目作者: rougier

项目描述 :
GNU Emacs / N Λ N O Modeline
高级语言: Emacs Lisp
项目地址: git://github.com/rougier/nano-modeline.git
创建时间: 2021-06-05T13:35:04Z
项目社区:https://github.com/rougier/nano-modeline

开源协议:GNU General Public License v3.0

下载


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:

  1. (add-hook 'prog-mode-hook #'nano-modeline-prog-mode)
  2. (add-hook 'text-mode-hook #'nano-modeline-text-mode)
  3. (add-hook 'org-mode-hook #'nano-modeline-org-mode)
  4. (add-hook 'pdf-view-mode-hook #'nano-modeline-pdf-mode)
  5. (add-hook 'mu4e-headers-mode-hook #'nano-modeline-mu4e-headers-mode)
  6. (add-hook 'mu4e-view-mode-hook #'nano-modeline-mu4e-message-mode)
  7. (add-hook 'elfeed-show-mode-hook #'nano-modeline-elfeed-entry-mode)
  8. (add-hook 'elfeed-search-mode-hook #'nano-modeline-elfeed-search-mode)
  9. (add-hook 'term-mode-hook #'nano-modeline-term-mode)
  10. (add-hook 'xwidget-webkit-mode-hook #'nano-modeline-xwidget-mode)
  11. (add-hook 'messages-buffer-mode-hook #'nano-modeline-message-mode)
  12. (add-hook 'org-capture-mode-hook #'nano-modeline-org-capture-mode)
  13. (add-hook 'org-agenda-mode-hook #'nano-modeline-org-agenda-mode)

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

  1. (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):