Hi Eric and Carl, "Eric Schulte" wrote: > Carl Bolduc <carlbol...@gmail.com> 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 does >> 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=never *.org`;do > ln -s $i `basename $i .org`.txt > done > #+end_src Best regards, Seb -- Sébastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode