From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Command line tricks Date: Wed, 6 Aug 2008 03:37:41 -0500 Message-ID: <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 1KQeWt-0005cf-JB for emacs-orgmode@gnu.org; Wed, 06 Aug 2008 04:37:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQeWr-0005af-Di for emacs-orgmode@gnu.org; Wed, 06 Aug 2008 04:37:58 -0400 Received: from [199.232.76.173] (port=45782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQeWr-0005aP-8F for emacs-orgmode@gnu.org; Wed, 06 Aug 2008 04:37:57 -0400 Received: from squirtle.drak.net ([72.52.144.201]:59008) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQeWq-0000CR-Ta for emacs-orgmode@gnu.org; Wed, 06 Aug 2008 04:37:57 -0400 Received: from [12.23.177.218] (helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1KQeWm-0006cn-W8 for emacs-orgmode@gnu.org; Wed, 06 Aug 2008 03:37:53 -0500 Content-Disposition: inline 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: Org Mode List 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