Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

honmaple/emacs-maple-modeline

Open more actions menu

Repository files navigation

emacs-maple-modeline

Screenshots

https://github.com/honmaple/emacs-maple-modeline/blob/master/screenshot/example.png https://github.com/honmaple/emacs-maple-modeline/blob/master/screenshot/example1.png https://github.com/honmaple/emacs-maple-modeline/blob/master/screenshot/example2.png

Quickstart

(use-package maple-modeline
  :quelpa (:fetcher github :repo "honmaple/emacs-maple-modeline")
  :hook (after-init . maple-modeline-mode))

Or alternatively, you can download the repository and install manually by doing:

git clone https://github.com/honmaple/emacs-maple-modeline ~/.emacs.d/site-lisp/maple-modeline

Then use

(use-package maple-modeline
  :ensure nil
  :hook (after-init . maple-modeline-mode))

Customize

;; standard, minimal, sidebar
(setq maple-modeline-style 'standard)
;; modeline style for side window
(setq maple-modeline-side-style 'side)
;; standard or auto or some number
(setq maple-modeline-width 'standard)
;; set modeline height
(setq maple-modeline-height 20)
;; show icon, require nerd-icons package
(setq maple-modeline-icon (and (display-graphic-p) *icon*))
;; the separator of segments
(setq maple-modeline-separator (if (display-graphic-p) 'wave 'default))
;; separator's direction of left-segments and right-segments: auto,right,left
(setq maple-modeline-direction '(right . left))

How to customize new style?

(maple-modeline-define style-name
  :left (window-number)
  :right (count)
  :separator "")

Then use (setq maple-modeline-style 'style-name)

How to customize new segment?

(maple-modeline-define-segment anzu
  :if (bound-and-true-p anzu--state)
  :priority 7
  :format (anzu--update-mode-line))

How to customize special segment?

  • custimize priority
    (add-to-list 'maple-modeline-priority-alist '(buffer-info . 8))
        
  • hide segment
    (add-to-list 'maple-modeline-priority-alist '(major-mode . 0))
        
  • custimize face
    (add-to-list 'maple-modeline-face-alist '(buffer-info . font-lock-keyword-face))
        

Features

Separators

  • default
  • wave
  • arrow
  • line
  • bar
  • slant
  • contour
  • box
  • butt
  • curve
  • zigzag
  • gradient

Segments

  • window-number
  • major-mode
  • minor-mode
  • buffer-info
  • buffer-encoding
  • buffer-position
  • remote-host
  • count
  • region
  • misc-info
  • python
  • flycheck
  • version-control
  • process
  • anzu
  • iedit
  • lsp
  • narrow
  • macro
  • nyan

About

Beautiful emacs modeline

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.