emacs emacs外部的org-odt-export-as-odf-and-odd [英] emacs org-odt-export-as-odf-and-open odt outside emacs

查看:93
本文介绍了emacs emacs外部的org-odt-export-as-odf-and-odd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

orgmode选项用于导出,查看和odt文件的直观用法应该是在自由/开放办公室中查看它.但是,到目前为止,我还没有运气.它始终在emacs中作为压缩存档打开.通过插入我的.emacs

The intuitive use for the orgmode option to export and view and odt file should be to view it in an libre/open office. However, I've so far had no luck in getting it to work; it always opens as a compressed archive in emacs. By inserting into my .emacs

(add-to-list 'org-file-apps '("\\.odt\\'" . "xdg-open %s"))

当访问组织文件中文件的链接时,我可以正确打开它们,但似乎并不会影响导出并查看"选项.我已经研究过更改org-odt-export-as-odf-and-open的问题,但无法看到它会有所作为.任何帮助,将不胜感激.再次,我希望org-odt-export-as-odf-and-open使用xdg-open或libreoffice(而不是Emacs)打开odf.

I open them properly when accessing links to files in org files, but it doesn't seem to effect the export-and-view option. I've looked into changing org-odt-export-as-odf-and-open but have not been able to see it make a difference. Any help would be appreciated. Once again, I want org-odt-export-as-odf-and-open to open the odf with xdg-open or libreoffice, not Emacs.

谢谢!

推荐答案

编辑在组织模式列表中提供了一种更为优美的解决方案,它不需要编辑任何打包的组织文件.只需将以下内容添加到您的.emacs中即可重新绑定系统正在执行的操作:

EDIT A more graceful solution was given on the org-mode list that doesn't require editing any of your packaged org files. Simply add the following to your .emacs to rebind what 'system is doing:

(setcdr (assq 'system org-file-apps-defaults-gnu ) "xdg-open %s")

这篇关于emacs emacs外部的org-odt-export-as-odf-and-odd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆