I am using this function to toggle the mode-line display. But it does not always function when I call it repeatedly.
(defvar-local ramona-mode-line-rflog nil)
(defun ramona-mode-line ()
"TODO."
(interactive)
(setq-local mode-line-format
(if ramona-mode-line-rflog
(setq mode-line-format ramona-mode-line-rflog)
(setq ramona-mode-line-rflog mode-line-format)
(setq mode-line-format nil))))
force-mode-line-update
with the optional argument set to non-nil if so desired.(force-mode-line-update t)
everytime I resetmode-line-format
.ramona-mode-line-rflog
back tonil
as pointed out in the link I pointed you to above?