emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Something like SETUPFILE, but in .emacs?


From: Matthew Sauer
Subject: Re: [Orgmode] Re: Something like SETUPFILE, but in .emacs?
Date: Mon, 14 Feb 2011 09:07:33 -0600

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
 
<rest of .emacs code here

---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 <address@hidden> 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 <address@hidden> wrote:
> Gary Oberbrunner <address@hidden> writes:
>
>> On Sun, Feb 13, 2011 at 10:53 AM, Darlan Cavalcante Moreira
>> <address@hidden> 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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


reply via email to

[Prev in Thread] Current Thread [Next in Thread]