Skip to content

Instantly share code, notes, and snippets.

@Neil-Smithline
Created May 20, 2012 21:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neil-Smithline/2759661 to your computer and use it in GitHub Desktop.
Save Neil-Smithline/2759661 to your computer and use it in GitHub Desktop.
Emacs Org-Mode Dyvamic Export By Tags
(defcustom org-export-dynmaic-tags '("blog")
"Select tags to export with `org-export-by-tag'."
:group 'org-export-html
:link '(function-link org-export-by-dynamic-tags)
:type '(repeat (string :tag "Tag Name")))
(defun org-export-by-dynamic-tags (&optional arg)
"Export topics in a project by tag, ignoring `org-export-select-tags'.
Call `org-export' with `org-export-select-tags' temporarily set
to the value of `org-export-dynamic-tags'."
(interactive "P")
(let ((org-export-select-tags org-export-dynamic-tags))
(call-interactively #'org-export)))
(define-key org-mode-map "\C-cd" #'org-export-dynamic-tags)
@mankoff
Copy link

mankoff commented Jan 1, 2015

s/dynmaic/dynamic/ (code) and dyvamic -> dynamic (title)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment