Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add party parrot support #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spaceline-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
:priority 78)
(org-pomodoro :when active)
(org-clock :when active)
nyan-cat)
nyan-cat
parrot)
`(which-function
(python-pyvenv :fallback python-pyenv)
(purpose :priority 94)
Expand Down
6 changes: 6 additions & 0 deletions spaceline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ The cdr can also be a function that returns a name to use.")
(declare-function eyebrowse--get 'eyebrowse)
(declare-function mode-line-auto-compile-control 'auto-compile)
(declare-function nyan-create 'nyan-mode)
(declare-function parrot-create 'parrot)
(declare-function safe-persp-name 'persp-mode)
(declare-function get-frame-persp 'persp-mode)
(declare-function winum-get-number 'winum)
Expand Down Expand Up @@ -451,6 +452,11 @@ This segment overrides the modeline functionality of `org-pomodoro' itself."
(when (bound-and-true-p nyan-mode)
(powerline-raw (nyan-create) default-face)))

(spaceline-define-segment parrot
"Shows the infamous party parrot. Requires `parrot-mode' to be enabled."
(when (bound-and-true-p parrot-mode)
(powerline-raw (parrot-create) default-face)))

(defun spaceline--unicode-number (str)
"Return a nice unicode representation of a single-digit number STR."
(cond
Expand Down