From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: exporting all org files to txt periodically Date: Thu, 13 Jan 2011 20:40:26 +0100 Message-ID: <80pqs0k2xh.fsf@missioncriticalit.com> References: <87sjwwbqp1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric and Carl, "Eric Schulte" wrote: > Carl Bolduc writes: >> Where I work, we have a powerful search engine that indexes all kinds of >> files. It detects the converter to use based on the file extension. It d= oes >> not understand the .org extension. >> >> I would like to know how I could periodically export my org files to txt, >> maybe through a command, to a specific location on my network. This way,= the >> search engine could index all my notes... > > Since Org-mode files are plain text, I don't think you would need to > export them at all, rather I would imagine an easier solution would be > to either > > 1. teach the search engine that .org means .txt Just wanting to add a variant: 1bis. teach Emacs that .txt means Org-mode: #+begin_src emacs-lisp (setq auto-mode-alist (append '( ("\\.txt$" . org-mode) ) auto-mode-alist)) #+end_src > 2. symlink all of your .org files to .txt file, e.g. on a linux, unix, > OSX system the following shell script will create a .txt symlink for > each .org file in the current directory > #+begin_src sh > for i in `ls --color=3Dnever *.org`;do > ln -s $i `basename $i .org`.txt > done > #+end_src Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode