Emacs: Add jabber-activity widget to mode-line
This commit is contained in:
parent
9da019d7e8
commit
7db1567d04
1 changed files with 28 additions and 11 deletions
|
@ -364,17 +364,34 @@ functionality, plus more.
|
||||||
(concat " " text)
|
(concat " " text)
|
||||||
"")))
|
"")))
|
||||||
|
|
||||||
(smt/deftheme yoshi
|
(defun oni:jabber-activity (widget)
|
||||||
:prototype 'black-crystal
|
(when (boundp 'jabber-activity-mode-string)
|
||||||
:local-widgets
|
(concat jabber-activity-mode-string " ")))
|
||||||
(lambda (theme)
|
|
||||||
(let ((parent-local-widgets
|
(eval-after-load "svg-mode-line-themes"
|
||||||
(smt/t-local-widgets (smt/t-prototype theme))))
|
'(progn
|
||||||
(append (list (cons 'minor-modes
|
(smt/defwidget oni:jabber-activity-widget
|
||||||
(smt/make-widget
|
:text 'oni:jabber-activity)
|
||||||
:prototye 'minor-modes
|
|
||||||
:text 'oni:smt/minor-mode-indicator-text)))
|
(smt/defrow oni:default-right
|
||||||
parent-local-widgets))))
|
:widgets '(oni:jabber-activity-widget major-mode version-control
|
||||||
|
minor-modes)
|
||||||
|
:align "right"
|
||||||
|
:margin 14)
|
||||||
|
|
||||||
|
(smt/deftheme yoshi
|
||||||
|
:prototype 'black-crystal
|
||||||
|
:local-widgets
|
||||||
|
(lambda (theme)
|
||||||
|
(let ((parent-local-widgets
|
||||||
|
(smt/t-local-widgets (smt/t-prototype theme))))
|
||||||
|
(append
|
||||||
|
(list (cons 'minor-modes
|
||||||
|
(smt/make-widget
|
||||||
|
:prototye 'minor-modes
|
||||||
|
:text 'oni:smt/minor-mode-indicator-text)))
|
||||||
|
parent-local-widgets)))
|
||||||
|
:rows '(default-left default-position oni:default-right))))
|
||||||
|
|
||||||
(defun oni:enable-svg-mode-line-theme ()
|
(defun oni:enable-svg-mode-line-theme ()
|
||||||
"Enable `svg-mode-line-theme' and select a theme."
|
"Enable `svg-mode-line-theme' and select a theme."
|
||||||
|
|
Loading…
Reference in a new issue