Skip to content

Commit f0dff94

Browse files
author
dp12
committed
Add party parrot support
1 parent 29ced71 commit f0dff94

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

spaceline-config.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
:priority 78)
4444
(org-pomodoro :when active)
4545
(org-clock :when active)
46-
nyan-cat)
46+
nyan-cat
47+
parrot)
4748
`(which-function
4849
(python-pyvenv :fallback python-pyenv)
4950
(purpose :priority 94)

spaceline-segments.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ The cdr can also be a function that returns a name to use.")
336336
(declare-function eyebrowse--get 'eyebrowse)
337337
(declare-function mode-line-auto-compile-control 'auto-compile)
338338
(declare-function nyan-create 'nyan-mode)
339+
(declare-function parrot-create 'parrot)
339340
(declare-function safe-persp-name 'persp-mode)
340341
(declare-function get-frame-persp 'persp-mode)
341342
(declare-function winum-get-number 'winum)
@@ -451,6 +452,11 @@ This segment overrides the modeline functionality of `org-pomodoro' itself."
451452
(when (bound-and-true-p nyan-mode)
452453
(powerline-raw (nyan-create) default-face)))
453454

455+
(spaceline-define-segment parrot
456+
"Shows the infamous party parrot. Requires `parrot-mode' to be enabled."
457+
(when (bound-and-true-p parrot-mode)
458+
(powerline-raw (parrot-create) default-face)))
459+
454460
(defun spaceline--unicode-number (str)
455461
"Return a nice unicode representation of a single-digit number STR."
456462
(cond

0 commit comments

Comments
 (0)