Browse Source

org-tempo: Do not activate Org Tempo in export output buffers and agenda

* lisp/org-tempo.el (b): Do not activate Org Tempo in export output
  buffers and agenda.
Nicolas Goaziou 1 year ago
parent
commit
da78ccc690
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lisp/org-tempo.el

+ 2 - 3
lisp/org-tempo.el

@@ -160,11 +160,10 @@ didn't succeed."
 ;; `org-structure-template-alist' must be loaded.
 
 (add-hook 'org-mode-hook 'org-tempo-setup)
-(add-hook 'org-tab-before-tab-emulation-hook
-	  'org-tempo-complete-tag)
+(add-hook 'org-tab-before-tab-emulation-hook 'org-tempo-complete-tag)
 
 ;; Enable Org Tempo in all open Org buffers.
-(dolist (b (org-buffer-list))
+(dolist (b (org-buffer-list 'files))
   (with-current-buffer b (org-tempo-setup)))
 
 (eval-after-load 'org