Am Mittwoch, 4. Dezember 2013, 18:26:46 schrieb Nick Nick Dokos: > AW <alexander.will...@t-online.de> writes: > > Hi! ... > Off the top of my head, I would say > > (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\"")) > > > i.e. just the command you provided enclosed in double quotes, except that > certain characters within have to be escaped: > > " -> \" > \ -> \\ > > The long string will probably be broken up into multiple lines by some > mailer but it is supposed to be one long string with no newlines. I > don't know if the spaces in the path will cause problems. > > Untested (except that I did evaluate the add-to-list and got no errors): > no Word and no wine here. >
I get no error message, but nothing happens, except Emacs telling me it has run the command. > BTW, why not LibreOffice? Does it mishandle your .doc files? LibreOffice changes the content of word files slightly and for folks who panic if not everything is like expected, that's too much already. You know, if you are the guy who works with LaTeX, word users tend to be somehow narrow minded. However, thank you. I tried something different now: I wrote a bash script, just two lines: #!/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? Regards, Alexander