From 1377fe212dbf93147f33103209d87224f8f1beed Mon Sep 17 00:00:00 2001 From: dx Date: Mon, 4 May 2020 05:16:28 +0100 Subject: +popup rule for async-shell-command buffer --- Doom/.doom.d/org/literate.org | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doom/.doom.d/org/literate.org') diff --git a/Doom/.doom.d/org/literate.org b/Doom/.doom.d/org/literate.org index 0bacd7e..2f90392 100644 --- a/Doom/.doom.d/org/literate.org +++ b/Doom/.doom.d/org/literate.org @@ -59,6 +59,11 @@ literate module of doom. "*org-tangle-messages*" "*org-tangle-errors*")))))) #+END_SRC +** Popup rules +I don't want Emacs to focus onto the output buffer of the tangling process when I save, which is what happens with a standard async-shell-command. So setup a rule for the 'messages' and 'errors' buffers to not focus them (by setting their time to live to 0). +#+BEGIN_SRC elisp +(set-popup-rule! "\*org-tangle-.*" :ttl 0) +#+END_SRC * Hook on save Now we need to make a hook function that, when the current buffer is an org file in the doom directory, will run the literate config procedure from above. Use -- cgit v1.2.3-13-gbd6f