[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: |
AW |
Subject: |
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ? |
Date: |
Thu, 05 Dec 2013 14:34:37 +0100 |
User-agent: |
KMail/4.11.2 (Linux/3.11.6-4-desktop; KDE/4.11.2; x86_64; ; ) |
Am Mittwoch, 4. Dezember 2013, 18:26:46 schrieb Nick Nick Dokos:
> AW <address@hidden> 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
- [O] Set org-file-apps to open a *.doc file under linux with Word ?, AW, 2013/12/04
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Nick Dokos, 2013/12/04
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Jambunathan K, 2013/12/04
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, AW, 2013/12/05
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Jambunathan K, 2013/12/05
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Jambunathan K, 2013/12/05
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, AW, 2013/12/05
- Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Jambunathan K, 2013/12/05
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?,
AW <=
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Jambunathan K, 2013/12/05
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?, Achim Gratz, 2013/12/05