aboutsummaryrefslogtreecommitdiff
path: root/Doom
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-04 05:16:28 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-05 02:59:45 +0100
commit1377fe212dbf93147f33103209d87224f8f1beed (patch)
treed522f50e0003a0e0f7cda25aa2cf251b7dadca2b /Doom
parentfbc6a4427c5e3d2cf282d235a3a41c3f85c587e2 (diff)
downloaddotfiles-1377fe212dbf93147f33103209d87224f8f1beed.tar.gz
dotfiles-1377fe212dbf93147f33103209d87224f8f1beed.tar.bz2
dotfiles-1377fe212dbf93147f33103209d87224f8f1beed.zip
+popup rule for async-shell-command buffer
Diffstat (limited to 'Doom')
-rw-r--r--Doom/.doom.d/org/literate.org5
1 files changed, 5 insertions, 0 deletions
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