Skip to content

Commit

Permalink
Add party parrot support
Browse files Browse the repository at this point in the history
  • Loading branch information
dp12 committed Oct 2, 2018
1 parent 29ced71 commit f0dff94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit f0dff94

Please sign in to comment.