From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: Re: Something like SETUPFILE, but in .emacs? Date: Mon, 14 Feb 2011 09:14:49 -0600 Message-ID: References: <4d57fe92.0aeb640a.669a.4f21@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0135990946==" Return-path: Received: from [140.186.70.92] (port=42029 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp08b-0003uR-07 for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:14:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp08Y-0001ZL-Tm for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:14:52 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:34063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp08Y-0001ZC-EF for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:14:50 -0500 Received: by ewy27 with SMTP id 27so2113305ewy.0 for ; Mon, 14 Feb 2011 07:14:49 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gary Oberbrunner Cc: emacs-orgmode@gnu.org, Dan Davison --===============0135990946== Content-Type: multipart/alternative; boundary=0015174c449a436f2f049c3f82c2 --0015174c449a436f2f049c3f82c2 Content-Type: text/plain; charset=ISO-8859-1 Would this be the full list of variables? Possible completions are: org-export-allow-BIND org-export-author-info org-export-babel-evaluate org-export-blocks org-export-blocks-postblock-hook org-export-blocks-witheld org-export-copy-to-kill-ring org-export-creator-info org-export-default-language org-export-email-info org-export-exclude-tags org-export-headline-levels org-export-highlight-first-table-line org-export-html-coding-system org-export-html-expand org-export-html-extension org-export-html-footnote-format org-export-html-footnotes-section org-export-html-home/up-format org-export-html-html-helper-timestamp org-export-html-inline-image-extensions org-export-html-inline-images org-export-html-link-home org-export-html-link-org-files-as-html org-export-html-link-up org-export-html-mathjax-options org-export-html-mathjax-template org-export-html-style org-export-html-style-extra org-export-html-style-include-default org-export-html-style-include-scripts org-export-html-table-align-individual-fields org-export-html-table-tag org-export-html-table-use-header-tags-for-first-column org-export-html-tag-class-prefix org-export-html-title-format org-export-html-todo-kwd-class-prefix org-export-html-toplevel-hlevel org-export-html-use-infojs org-export-html-validation-link org-export-html-with-timestamp org-export-html-xml-declaration org-export-htmlize-css-font-prefix org-export-htmlize-output-type org-export-htmlized-org-css-url org-export-interblocks org-export-kill-product-buffer-when-displayed org-export-language-setup org-export-latex-default-packages-alist org-export-latex-packages-alist org-export-mark-todo-in-toc org-export-prefer-native-exporter-for-tables org-export-preserve-breaks org-export-remove-timestamps-from-toc org-export-run-in-background org-export-section-number-format org-export-select-tags org-export-show-temporary-export-buffer org-export-skip-text-before-1st-heading org-export-table-data-tags org-export-table-header-tags org-export-table-remove-special-lines org-export-table-row-tags org-export-time-stamp-file org-export-with-LaTeX-fragments org-export-with-TeX-macros org-export-with-archived-trees org-export-with-drawers org-export-with-emphasize org-export-with-fixed-width org-export-with-footnotes org-export-with-priority org-export-with-section-numbers org-export-with-special-strings org-export-with-sub-superscripts org-export-with-tables org-export-with-tags org-export-with-timestamps org-export-with-toc org-export-with-todo-keywords On Mon, Feb 14, 2011 at 9:07 AM, Matthew Sauer wrote: > Question, would something like the following work? > > For .emacs > > ---start of .emacs ----------snip---------------snip-----------snip------------------- > > (setq load-path (append '("/home/usr/emacs/load/") load-path)) > (setq load-path (append '("/home/usr/emacs") load-path)) > > (load "export-setup" nil t ) ; Org-Export settings > > > ---end of .emacs ----------snip---------------snip-----------snip------------------- > > --- Start of export-setup.el ------snip-------snip-------------snip----------- > > (setq . . . . . . > > . . . . . Set the variables you want here but they can be overrode in > specific files with specific buffer overrides #+STARTUP > --------------end Export-setup.el > > > Got the idea from http://www.dotemacs.de/recovery.html > > > Matthew S > > > > On Sun, Feb 13, 2011 at 8:08 PM, Gary Oberbrunner wrote: > >> Yes, that's definitely what I'm looking for. If I get some time I may >> write a function to allow autoloading a setupfile-syntax version (just >> for consistency/simplicity), but given shortness of time I'll probably >> just track down the vars and set them in my .emacs. :-) >> >> thanks! >> >> On Sun, Feb 13, 2011 at 4:16 PM, Dan Davison >> wrote: >> > Gary Oberbrunner writes: >> > >> >> On Sun, Feb 13, 2011 at 10:53 AM, Darlan Cavalcante Moreira >> >> wrote: >> >>> You can use auto-insert for this. >> >> >> >> I guess I'm really not using org-mode in the way it was intended -- >> >> everyone thinks I should put these values into each one of my org-mode >> >> files. >> > >> > Hi Gary, >> > >> > What did you think of the suggestion I made? >> > >> > http://article.gmane.org/gmane.emacs.orgmode/37408 >> > >> > I believe it pointed you in the right direction. You need to (a) find >> > the variables that control the export behavior in question, and (b) set >> > those variables in your .emacs. My reply gave a source of many of the >> > relevant variables, i.e. the default value of the variable >> > `org-export-plist-vars'. An example of one of those variables is >> > >> > [...] >> > >> >> As an example, I *never* want to export the creator line. >> > >> > `org-export-creator-info'. >> > >> > Let us know if you have trouble finding the appropriate variable for >> > something, or if setting the variables isn't behaving the way you want. >> > >> > Dan >> > >> > >> >> But most of the comments on this list seem to say I should >> >> modify my .org files (at least to include #+SETUPFILE), so I guess >> >> I'll consider that as standard practice. >> >> >> >> Would anyone be interested if I were to create a way to specify export >> >> values in a global file somewhere (~/.org-site-defaults or something) >> >> in the same syntax as SETUPFILE (#+kwd: value) that would set up all >> >> the defaults for _every_ org file? >> > >> >> >> >> -- >> -- Gary >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > --0015174c449a436f2f049c3f82c2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Would this be the full list of variables?
Possible completions are= :
org-export-allow-BIND =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org-ex= port-author-info
org-export-babel-evaluate =A0 =A0 =A0 =A0 =A0 = =A0 =A0org-export-blocks
org-export-blocks-postblock-hook =A0 =A0 =A0 org-export-blocks-witheld
org-export-copy-to-kill-ring =A0 =A0 =A0 =A0 =A0 org-export-creator-i= nfo
org-export-default-language =A0 =A0 =A0 =A0 =A0 =A0org-export= -email-info
org-export-exclude-tags =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0org-export-headline-levels
org-export-highlight-first-table-line =A0org-export-html-coding-system=
org-export-html-expand =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 org-expor= t-html-extension
org-export-html-footnote-format =A0 =A0 =A0 =A0o= rg-export-html-footnotes-section
org-export-html-home/up-format =A0 =A0 =A0 =A0 org-export-html-html-he= lper-timestamp
org-export-html-inline-image-extensions org-export= -html-inline-images
org-export-html-link-home =A0 =A0 =A0 =A0 =A0= =A0 =A0org-export-html-link-org-files-as-html
org-export-html-link-up =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org-export-html= -mathjax-options
org-export-html-mathjax-template =A0 =A0 =A0 org= -export-html-style
org-export-html-style-extra =A0 =A0 =A0 =A0 = =A0 =A0org-export-html-style-include-default
org-export-html-style-include-scripts
org-export-html-table-= align-individual-fields
org-export-html-table-tag
org-e= xport-html-table-use-header-tags-for-first-column
org-export-html= -tag-class-prefix =A0 =A0 =A0 org-export-html-title-format
org-export-html-todo-kwd-class-prefix =A0org-export-html-toplevel-hlev= el
org-export-html-use-infojs =A0 =A0 =A0 =A0 =A0 =A0 org-export-= html-validation-link
org-export-html-with-timestamp =A0 =A0 =A0 = =A0 org-export-html-xml-declaration
org-export-htmlize-css-font-prefix =A0 =A0 org-export-htmlize-output-t= ype
org-export-htmlized-org-css-url =A0 =A0 =A0 =A0org-export-int= erblocks
org-export-kill-product-buffer-when-displayed
= org-export-language-setup =A0 =A0 =A0 =A0 =A0 =A0 =A0org-export-latex-defau= lt-packages-alist
org-export-latex-packages-alist =A0 =A0 =A0 =A0org-export-mark-todo-in= -toc
org-export-prefer-native-exporter-for-tables
org-e= xport-preserve-breaks =A0 =A0 =A0 =A0 =A0 =A0 org-export-remove-timestamps-= from-toc
org-export-run-in-background =A0 =A0 =A0 =A0 =A0 org-export-section-number-= format
org-export-select-tags =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 org= -export-show-temporary-export-buffer
org-export-skip-text-before-= 1st-heading org-export-table-data-tags
org-export-table-header-tags =A0 =A0 =A0 =A0 =A0 org-export-table-remo= ve-special-lines
org-export-table-row-tags =A0 =A0 =A0 =A0 =A0 = =A0 =A0org-export-time-stamp-file
org-export-with-LaTeX-fragments= =A0 =A0 =A0 =A0org-export-with-TeX-macros
org-export-with-archived-trees =A0 =A0 =A0 =A0 org-export-with-drawers=
org-export-with-emphasize =A0 =A0 =A0 =A0 =A0 =A0 =A0org-export-= with-fixed-width
org-export-with-footnotes =A0 =A0 =A0 =A0 =A0 = =A0 =A0org-export-with-priority
org-export-with-section-numbers =A0 =A0 =A0 =A0org-export-with-special= -strings
org-export-with-sub-superscripts =A0 =A0 =A0 org-export-= with-tables
org-export-with-tags =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 org-export-with-timestamps
org-export-with-toc =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org-export-= with-todo-keywords


On Mo= n, Feb 14, 2011 at 9:07 AM, Matthew Sauer <improv.philosophy@gmail.com> wrote:
Question, would something like the followin= g work?

For .emacs
---start of .emacs ----------snip---------------snip-----------snip--------=
-----------

 (setq load-path (append '("/=
home/usr/emacs/load/") load-path))
 (setq load-path (append '("/=
home/usr/emacs") load-path))

 (load "export-setup"=
         nil t )  ; Org-Export setting=
s
=A0
<rest of .emacs code here

---end   of .emacs ----------snip---------------snip-----------snip--------=
-----------
--- Start of export-setup.el ------snip-------snip---=
----------snip-----------
(setq =A0. . . . . .=A0

=A0. . . . . S= et the variables you want here but they can be overrode in specific files w= ith specific buffer overrides #+STARTUP
--------------end Export-= setup.el


Got the idea from http://www.dotemacs.de/recovery.=
html

Matthew S


On Sun, Feb 13, 2011 at 8:08 PM, Gary Oberbrunner <garyo@oberbrunner.c= om> wrote:
Yes, that's definitely what I'm looking for. =A0If I get some time = I may
write a function to allow autoloading a setupfile-syntax version (just
for consistency/simplicity), but given shortness of time I'll probably<= br> just track down the vars and set them in my .emacs. :-)

thanks!

On Sun, Feb 13, 2011 at 4:16 PM, Dan Davison <dandavison7@gmail.com> wrote:
> Gary Oberbrunner <garyo@oberbrunner.com> writes:
>
>> On Sun, Feb 13, 2011 at 10:53 AM, Darlan Cavalcante Moreira
>> <darcamo= @gmail.com> wrote:
>>> You can use auto-insert for this.
>>
>> I guess I'm really not using org-mode in the way it was intend= ed --
>> everyone thinks I should put these values into each one of my org-= mode
>> files.
>
> Hi Gary,
>
> What did you think of the suggestion I made?
>
> http://article.gmane.org/gmane.emacs.orgmode/37408
>
> I believe it pointed you in the right direction. You need to (a) find<= br> > the variables that control the export behavior in question, and (b) se= t
> those variables in your .emacs. My reply gave a source of many of the<= br> > relevant variables, i.e. the default value of the variable
> `org-export-plist-vars'. An example of one of those variables is >
> [...]
>
>> As an example, I *never* want to export the creator line.
>
> `org-export-creator-info'.
>
> Let us know if you have trouble finding the appropriate variable for > something, or if setting the variables isn't behaving the way you = want.
>
> Dan
>
>
>> =A0But most of the comments on this list seem to say I should
>> modify my .org files (at least to include #+SETUPFILE), so I guess=
>> I'll consider that as standard practice.
>>
>> Would anyone be interested if I were to create a way to specify ex= port
>> values in a global file somewhere (~/.org-site-defaults or somethi= ng)
>> in the same syntax as SETUPFILE (#+kwd: value) that would set up a= ll
>> the defaults for _every_ org file?
>



--
-- Gary

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--0015174c449a436f2f049c3f82c2-- --===============0135990946== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0135990946==--