From 1687cf3d6e5e818d0b13dd658697aef6b5d29fea Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 8 Jul 2020 22:21:14 +0200 Subject: Remove org-babel tangling flicker --- gui/conf/init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gui/conf') diff --git a/gui/conf/init.el b/gui/conf/init.el index e270913..1ef5f53 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -409,6 +409,16 @@ (define-key eshell-mode-map (kbd "") (lambda () (interactive) (completion-at-point))))) +(defadvice org-babel-tangle-single-block (around inhibit-redisplay activate protect compile) + (let ((inhibit-redisplay t) + (inhibit-message t)) + ad-do-it)) + +(defadvice org-babel-tangle (around time-it activate compile) + (let ((time (current-time))) + ad-do-it + (message "org-tangle took %f sec" (float-time (time-subtract (current-time) time))))) + (let ((mu4e-config "~/.emacs.d/email.el")) (when (file-exists-p mu4e-config) (load-file mu4e-config))) -- cgit v1.2.3