From 6368ef9ba098fdcd44c3d659ed0a5bfe372363b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 1 Oct 2018 20:29:43 -0400 Subject: [PATCH] Add docstrings to fix hooks --- core/core-ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 53e160fe1..21ca9e83e 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -494,15 +494,17 @@ moderate boost in startup (or theme switch) time." (advice-add #'load-theme :around #'doom*prefer-compiled-theme) (defun doom|disable-whitespace-mode-in-childframes (frame) + "`whitespace-mode' inundates child frames with whitspace markers, so disable +it to fix all that visual noise." (when (frame-parameter frame 'parent-frame) (with-selected-frame frame (setq-local whitespace-style nil) frame))) (add-hook 'after-make-frame-functions #'doom|disable-whitespace-mode-in-childframes) -;; Disruptive motion errors take over the minibuffer while we're typing there; -;; prevent this from happening. (defun doom*silence-motion-errors (orig-fn &rest args) + "Prevent disruptive motion errors taking over the minibuffer while we're in +it." (if (not (minibufferp)) (apply orig-fn args) (ignore-errors (apply orig-fn args))