From ba9135f051afbcdef0ece8e29a47b4ab4a319579 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 11 Dec 2009 08:57:04 +0100 Subject: [PATCH] Add startup option for beamer mode --- lisp/ChangeLog | 5 +++++ lisp/org.el | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f220bc494..73972b4f1 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,10 @@ 2009-12-11 Carsten Dominik + * org.el (org-startup-with-beamer-mode): New option. + + * org-exp.el (org-export-select-backend-specific-text): Add the + special beamer tags. + * org-beamer.el (org-export-preprocess-before-selecting-backend-code-hook): New file. diff --git a/lisp/org.el b/lisp/org.el index e9083bc70..bffaa31e8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -323,6 +323,15 @@ the following lines anywhere in the buffer: (const :tag "Not" nil) (const :tag "Globally (slow on startup in large files)" t))) +(defcustom org-startup-with-beamer-mode nil + "Non-nil means, turn on `org-beamer-mode' on startup. +This can also be configured on a per-file basis by adding one of +the following lines anywhere in the buffer: + + #+STARTUP: beamer" + :group 'org-startup + :type 'boolean) + (defcustom org-startup-align-all-tables nil "Non-nil means, align all tables when visiting a file. This is useful when the column width in tables is forced with cookies @@ -3763,7 +3772,8 @@ After a match, the following groups carry important information: ("constSI" constants-unit-system SI) ("noptag" org-tag-persistent-alist nil) ("hideblocks" org-hide-block-startup t) - ("nohideblocks" org-hide-block-startup nil)) + ("nohideblocks" org-hide-block-startup nil) + ("beamer" org-startup-with-beamer-mode t)) "Variable associated with STARTUP options for org-mode. Each element is a list of three items: The startup options as written in the #+STARTUP line, the corresponding variable, and the value to