[Top][All Lists]

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

Re: [Orgmode] Command line tricks

From: Sebastian Rose
Subject: Re: [Orgmode] Command line tricks
Date: Thu, 07 Aug 2008 20:06:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)


...and here is a little snippet, showing how I reuse files in several

         :base-directory "~/path/ONE/"
         :recursive t
         :base-extension "css\\|js"
         :publishing-directory "~/path/TWO/"
         :publishing-function org-publish-attachment)

         :base-directory "~/path/TWO/"
         :auto-index t
         :index-filename "sitemap.org"
         :index-title "Sitemap"
         :recursive t
         :base-extension "org"
         :publishing-directory "~/htdocs/TWO/"
         :publishing-function org-publish-org-to-html
         :headline-levels 3
         :auto-preamble t

         ; ... etc. pp. ...

        ("project-TWO" :components ("TWO-inherit" "TWO-notes" "..."))

With this setup I only have to edit the *.css and *.js files in project
ONE, since TWO-inherit imports them.

If you use timestamps for publishing, it even works the other way around

        ("ONE-inherit "
         :base-directory "~/path/TWO/"
         :recursive t
         :base-extension "css\\|js"
         :publishing-directory "~/path/ONE/"
         :publishing-function org-publish-attachment)

Now it doesn't matter anymore which stylesheet you change.


- Sebastian

Russell Adams <address@hidden> writes:

> I've recently started using a few command line options with Org I
> thought I'd share, perhaps they'll inspire someone else.
> In my ~/.bashrc, I have defined an alias for Org that runs:
> emacs -nw --funcall org-agenda-list
> Which pulls up Org in the agenda view, which is where I wanted to be
> in the first place!
> I'm working away at latex, and I've divided up some of my files in
> Org, and got tired to manually triggering the export to latex.
> Instead now I have a makefile which runs:
> emacs --eval '(setq enable-local-variables :all)' \
>         filename.org \
>         -f org-export-as-latex \
>         -f save-buffers-kill-emacs
> This opens my Org file, exports it to latex, and quits. I'm very
> pleased with the result, because the makefile next calls pdflatex to
> PDF my document. The local variables override is because I set some
> custom headers in the documents.
> Enjoy!
> ------------------------------------------------------------------
> Russell Adams                            address@hidden
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Sebastian Rose, Hannover, Germany
Phone: +49 173 83 93 417
Mail.: address@hidden, address@hidden

reply via email to

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