From 80abceb212b2acb420317232cb2c3d0ab69af13b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 May 2022 13:26:19 -0500 Subject: asdpofiuasdpfoiasjdpfoiajsdf --- lisp/+modeline.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lisp/+modeline.el') diff --git a/lisp/+modeline.el b/lisp/+modeline.el index 33d34c3..026302b 100644 --- a/lisp/+modeline.el +++ b/lisp/+modeline.el @@ -9,6 +9,7 @@ ;;; Code: (require '+util) +(require 'actually-selected-window) (require 'simple-modeline) (require 'minions) @@ -472,5 +473,13 @@ to a function in the current buffer, call that function instead." (kmacro-end-macro nil))))) 'mouse-face 'mode-line-highlight)))) +(defun +modeline-nyan-on-focused (&optional spacer) + "Display the cat from `nyan-mode', but only on the focused window." + (require 'nyan-mode) + (when (actually-selected-window-p) + (concat (or spacer "") (nyan-create) + (propertize "." + 'face 'font-lock-comment-face)))) + (provide '+modeline) ;;; +modeline.el ends here -- cgit 1.4.1-21-gabe81