From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Command line tricks Date: Thu, 07 Aug 2008 20:06:30 +0200 Message-ID: <878wv8g0nt.fsf@kassiopeya.MSHEIMNETZ> References: <20080806083741.GA15423@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR9rA-0000NH-JH for emacs-orgmode@gnu.org; Thu, 07 Aug 2008 14:05:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR9r8-0000L0-KA for emacs-orgmode@gnu.org; Thu, 07 Aug 2008 14:04:59 -0400 Received: from [199.232.76.173] (port=33594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR9r8-0000Kl-AA for emacs-orgmode@gnu.org; Thu, 07 Aug 2008 14:04:58 -0400 Received: from mail.gmx.net ([213.165.64.20]:56291) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KR9r7-0006LJ-NC for emacs-orgmode@gnu.org; Thu, 07 Aug 2008 14:04:58 -0400 In-Reply-To: <20080806083741.GA15423@thinkpad.adamsinfoserv.com> (Russell Adams's message of "Wed, 6 Aug 2008 03:37:41 -0500") 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: emacs-orgmode Mailinglist Great! ...and here is a little snippet, showing how I reuse files in several projects: ("TWO-inherit" :base-directory "~/path/ONE/" :recursive t :base-extension "css\\|js" :publishing-directory "~/path/TWO/" :publishing-function org-publish-attachment) ("project-TWO-notes" :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 too: ("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 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 RLAdams@AdamsInfoServ.com > > 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Sebastian Rose, Hannover, Germany Phone: +49 173 83 93 417 Mail.: sebatian_rose@gmx.de, s.rose@emma-stil.de