diff options
author | Adrian Kummerlaender | 2020-07-08 22:21:14 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-07-08 22:21:14 +0200 |
commit | 1687cf3d6e5e818d0b13dd658697aef6b5d29fea (patch) | |
tree | 58a16c2094fe25487796684932b19e300d0ec27b | |
parent | 18fd637cfb8a41effa4f12a6b26eb3ffb41a33f2 (diff) | |
download | nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar.gz nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar.bz2 nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar.lz nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar.xz nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.tar.zst nixos_home-1687cf3d6e5e818d0b13dd658697aef6b5d29fea.zip |
Remove org-babel tangling flicker
-rw-r--r-- | gui/conf/init.el | 10 |
1 files changed, 10 insertions, 0 deletions
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 "<tab>") (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))) |