emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Achim Gratz
Subject: Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Date: Thu, 05 Dec 2013 20:48:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

AW writes:
> #!/bin/bash
>
> 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"
>
> On the command line "word.sh" works.
>
> But in .emacs the lines
>
> (add-to-list 'org-file-apps
>              '("\\.docx" . "exec /home/AW/bin/word.sh %s"))
>
> don't. What am I doing in the wrong way?

"exec" is a shell built-in.  Try:

--8<---------------cut here---------------start------------->8---
#!/bin/sh
exec 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"
--8<---------------cut here---------------end--------------->8---

Then drop the exec from the emacs association to docx.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




reply via email to

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