help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set org-file-apps to open a *.doc file under linux with Word ?


From: AW
Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ?
Date: Wed, 04 Dec 2013 22:55:01 +0100
User-agent: KMail/4.11.2 (Linux/3.11.6-4-desktop; KDE/4.11.2; x86_64; ; )

Wrong list! Sorry for the noise!


Am Mittwoch, 4. Dezember 2013, 22:37:59 schrieb AW:
> Hi!
> 
> I'm using orgmode as a replacement for folders, you know, real folders, lots
> of paper inside.
> 
> In my orgfiles I link to many other files, mostly *.tex and *.pdf, links
> look like
> 
> [[./foo.pdf][About foo]]
> 
> Sometimes I can't avoid to link to doc  or docx files. So I need my linux pc
> to start word and load a certain file.
> 
> I'd like to link to *.doc files in the same way:
> 
> [[./bar.doc][About that draft]]
> 
> But how can I set org-file-apps to open a *.doc file with MS Word under
> Linux? Word works, more or less.
> 
> To start word the command is:
> 
> env WINEPREFIX="/home/AW/.wine-office" wine "C:\windows\command\start.exe"
> /Unix "/home/AW/.wine-office/dosdevices/c:/users/AW/Start
> Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk"
> 
> But how in the world can I put in my .emacs file? I tried:
> 
>  (add-to-list 'org-file-apps
>    '("\\.doc" . "\"env WINEPREFIX="/home/AW/.wine-office" wine
> "C:/windows/command/start.exe"
>  /Unix "/home/AW/.wine-office/dosdevices/c:/users/AW/Start
> Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk"\" %s"))
> 
> But I get:
> 
> Invalid read syntax: ". in wrong context"
> 
> Any suggestions would be welcome!
> 
> Regards,
> 
> Alexander




reply via email to

[Prev in Thread] Current Thread [Next in Thread]