Function: hyrolo-normalize-mode-function

hyrolo-normalize-mode-function is a byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-normalize-mode-function FRAME)

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
;; The *HyRolo* buffer uses `hyrolo-org-mode' and `hyrolo-markdown-mode'
;; on Org and Markdown files that it reads to speed loading and
;; searching.  This next function switches such buffers to their
;; normal modes whenever they are displayed.
(defun hyrolo-normalize-mode-function (frame)
  (with-selected-frame frame
    (walk-windows
     (lambda (window)
       (with-selected-window window
	 (when (apply #'derived-mode-p '(hyrolo-markdown-mode hyrolo-org-mode))
	   ;; Display buffer before `normal-mode' triggers possibly
	   ;; long-running font-locking
	   (sit-for 0.1)
	   (normal-mode)))))))