All Projects → domtronn → Spaceline All The Icons.el

domtronn / Spaceline All The Icons.el

Licence: mit
A Spaceline Mode Line theme using All The Icons for Emacs

Projects that are alternatives of or similar to Spaceline All The Icons.el

All The Icons.el
A utility package to collect various Icon Fonts and propertize them within Emacs.
Stars: ✭ 1,048 (+353.68%)
Mutual labels:  emacs, font-icons
Engine Mode
Minor mode for defining and querying search engines through Emacs.
Stars: ✭ 225 (-2.6%)
Mutual labels:  emacs
Dotfiles
Ninrod's sharpened dotfiles for emacs, vim, zsh, tmux. Since '15.
Stars: ✭ 208 (-9.96%)
Mutual labels:  emacs
Vimish Fold
Vim-like text folding for Emacs
Stars: ✭ 220 (-4.76%)
Mutual labels:  emacs
Doct
DOCT: Declarative Org Capture Templates for Emacs
Stars: ✭ 210 (-9.09%)
Mutual labels:  emacs
Live Py Plugin
Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
Stars: ✭ 222 (-3.9%)
Mutual labels:  emacs
Uncledavesemacs
My personal ~/.emacs.d
Stars: ✭ 204 (-11.69%)
Mutual labels:  emacs
Emacs Rime
RIME ㄓ in Emacs
Stars: ✭ 229 (-0.87%)
Mutual labels:  emacs
Wakatime Mode
Emacs plugin for automatic time tracking and metrics generated from your programming activity.
Stars: ✭ 225 (-2.6%)
Mutual labels:  emacs
Emacs Bash Completion
Add programmable bash completion to Emacs shell-mode
Stars: ✭ 217 (-6.06%)
Mutual labels:  emacs
Atom One Dark Theme
Atom One Dark - An Emacs port of the Atom One Dark theme from Atom.io.
Stars: ✭ 217 (-6.06%)
Mutual labels:  emacs
Github Review
Github code reviews with Emacs.
Stars: ✭ 210 (-9.09%)
Mutual labels:  emacs
Bufler.el
A butler for your buffers. Group buffers into workspaces with programmable rules, and easily switch to and manipulate them.
Stars: ✭ 222 (-3.9%)
Mutual labels:  emacs
Fsautocomplete
F# language server using Language Server Protocol
Stars: ✭ 208 (-9.96%)
Mutual labels:  emacs
.emacs.d
My emacs configuration
Stars: ✭ 224 (-3.03%)
Mutual labels:  emacs
Verb
Organize and send HTTP requests from Emacs
Stars: ✭ 205 (-11.26%)
Mutual labels:  emacs
Homebrew Emacs Head
GNU Emacs formula for the Homebrew package manager
Stars: ✭ 214 (-7.36%)
Mutual labels:  emacs
Awesome Elisp
A curated list of emacs-lisp development resources
Stars: ✭ 221 (-4.33%)
Mutual labels:  emacs
Blog Admin
Write blog in emacs with hexo/org-page/nikola
Stars: ✭ 230 (-0.43%)
Mutual labels:  emacs
Lazyblorg
Blogging with Org-mode for very lazy people
Stars: ✭ 226 (-2.16%)
Mutual labels:  emacs

Installation | Usage | Customization | Debugging

Installation

You should be able to install this package in the standard way, add it to the load path and then calling

(package-install 'spaceline-all-the-icons)

(require 'spaceline-all-the-icons)
;; or
(use-package spaceline-all-the-icons)

N.B. This package is highly dependent on all-the-icons.el, so make sure you have the fonts installed correctly

Usage

The simplest way to use this package is to set the mode-line-format to be the spaceline-all-the-icons theme or by calling spaceline-all-the-icons-theme

(use-package spaceline-all-the-icons 
  :after spaceline
  :config (spaceline-all-the-icons-theme))

Optional dependencies

There are a few segments that require optional packages and custom setup functions in order to run. Calling these two functions in your setup/config will enable the segments.

(spaceline-all-the-icons--setup-anzu)            ;; Enable anzu searching
(spaceline-all-the-icons--setup-package-updates) ;; Enable package update indicator
(spaceline-all-the-icons--setup-git-ahead)       ;; Enable # of commits ahead of upstream in git
(spaceline-all-the-icons--setup-paradox)         ;; Enable Paradox mode line
(spaceline-all-the-icons--setup-neotree)         ;; Enable Neotree mode line

Customization

The mode line is broken down into segments, where each segment can be toggled on or off independently.

Also, some of the segments have icon sets associated with them and can be modified to your taste.

You can see all of these options by calling

M-x customize-group spaceline-all-the-icons

Custom Segments

You can add your own custom segments to the theme by installing it using the spaceline-all-the-icons-theme function and passing the segment symbols as arguments.

(spaceline-all-the-icons-theme 'your-segment-symbol "Hello" 'etc)

These segments will appear in order on the right side of the mode line, in the empty middle section before all other right aligned segments.

Disabled Segments

Some segments are disabled by default you can turn them on by calling the following in your :config

(spaceline-toggle-all-the-icons-SEGMENT-on)
Segment Description
bookmark Indicates whether the current file is Bookmarked
dedicated Indicates whether the current file is dedicated
fullscreen Indicates whether the frame is Fullscreen
buffer-position Indicates the position through the buffer as a percentage
narrowed Indicates whether the current buffer has been narrowed

Icon Sets

The following segments can have their icon sets customized. You can choose these by calling the following or setting it in :config

M-x customize-group spaceline-all-the-icons-icon-set

(setq spaceline-all-the-icons-icon-set-modified 'toggle)

These segments can have one of the following icon sets

Segment Available Icons
modified chain, toggle, circle
bookmark bookmark, heart, star
dedicated pin, sticky-note
window-numbering circle, solid, string, square
eyebrowse-workspace circle, solid, string, square
multiple-cursors caret, pointer
git-stats diff-icons, arrows
flycheck-slim solid, outline, dots
sun-time rise/set, sun/moon, arrows

Separators

You can customize the divider separators using spaceline-all-the-icons-separator-type, the available types are: 'slant, 'arrow, 'cup, 'wave, 'none

You also have two types of separators between individual segments, these are spaceline-all-the-icons-primary-separator & spaceline-all-the-icons-secondary-separator. Their defualt values are | & · respectively.

Debugging

When a segment throws an error in Spaceline, this causes the entire mode line to disappear (be blank), this is since the mode-line-format throws an error.

Spaceline unfortunately hides a lot of errors internally and doesn't given you information as to which segment is throwing an error.

To debug this, try running

M-x spaceline-all-the-icons--debug-segments
C-u M-x spaceline-all-the-icons--debug-segments

This will (should) return a list of segments which are throwing errors and will help me to debug any issues you're having!

Calling it with a C-u prefix will (should) disable the segments that are currently erroring so that at least the mode line will work.

▲ back to top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].