From e147085703c8bf5e014a2268796977a2cffdb073 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 27 Jan 2020 02:24:26 +0900 Subject: [PATCH] Fix nyan-mode config --- emacs.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index 02bea23..8f5b50c 100644 --- a/emacs.el +++ b/emacs.el @@ -793,16 +793,18 @@ THEM are function and its args." ;; default-directory)))) ;; "[" (:eval (progn - (set-variable 'nyan-bar-length - (- (window-size nil t) 4) - t) (list (nyan-create)))) ;; "]" ;; (:eval (let ((f (or (buffer-file-name) ;; default-directory))) ;; (when f ;; (abbreviate-file-name f)))) - ))) + )) + (add-hook 'window-configuration-change-hook + (lambda () + (set-variable 'nyan-bar-length + (- (window-size nil t) 4) + t)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; letters, font-lock mode and fonts