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