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)
|
||||
"")))
|
||||
|
||||
(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))))
|
||||
(defun oni:jabber-activity (widget)
|
||||
(when (boundp 'jabber-activity-mode-string)
|
||||
(concat jabber-activity-mode-string " ")))
|
||||
|
||||
(eval-after-load "svg-mode-line-themes"
|
||||
'(progn
|
||||
(smt/defwidget oni:jabber-activity-widget
|
||||
:text 'oni:jabber-activity)
|
||||
|
||||
(smt/defrow oni:default-right
|
||||
: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 ()
|
||||
"Enable `svg-mode-line-theme' and select a theme."
|
||||
|
|
Loading…
Reference in a new issue