[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: exporting all org files to txt periodically
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Re: exporting all org files to txt periodically |
Date: |
Thu, 13 Jan 2011 20:40:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) |
Hi Eric and Carl,
"Eric Schulte" wrote:
> Carl Bolduc <address@hidden> 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