93

GitHub - tarsius/moody: Tabs and ribbons for the mode-line

 6 years ago
source link: https://github.com/tarsius/moody
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Tabs and ribbons for the mode line

This package provides utilities for displaying elements of the mode line as tabs and ribbons. It also provides replacements for a few built-in elements.

screenshot

  • Make sure that the face mode-line does not set :box and that :underline and :overline are the same color or are both undefined. If defined, then the line color should be different from the :background colors of both mode-line and default. Do the same for mode-line-inactive. The line colors of mode-line and mode-line-inactive do not have to be identical. For example:

    (use-package solarized-theme
      :config
      (load-theme 'solarized-light t)
      (let ((line (face-attribute 'mode-line :underline)))
        (set-face-attribute 'mode-line          nil :overline   line)
        (set-face-attribute 'mode-line-inactive nil :overline   line)
        (set-face-attribute 'mode-line-inactive nil :underline  line)
        (set-face-attribute 'mode-line          nil :box        nil)
        (set-face-attribute 'mode-line-inactive nil :box        nil)
        (set-face-attribute 'mode-line-inactive nil :background "#f9f2d9")))
  • Add something like this to your init file:

    (use-package moody
      :config
      (setq x-underline-at-descent-line t)
      (moody-replace-mode-line-buffer-identification)
      (moody-replace-vc-mode))
  • Such replacement functions are defines as commands, making it quicker to try them out.

  • To undo a replacement use the optional REVERSE argument of the replacement function. When calling it interactively, then use a prefix argument to do so.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK