您好我正在使用openwith
打开pdf
中的okular
个文件,相关的行是
(require 'openwith) ;open files with external program
(setq openwith-associations '(("\\.pdf\\'" "okular" (file)))) ;use okular for pdf
(openwith-mode t)
当我想发送包含mu4e
的邮件时,如果附加了pdf
,而不是完成功能message-send-and-exit
,pdf
会在{{{}}中打开1}}并且永远不会发送消息。
我正在考虑添加类似的挂钩
okular
但我不是(add-hook 'message-send-and-exit (openwith-mode nil))
专家,但这并没有解决问题,可能是我做错了什么,有人可以给我一个提示吗?
答案 0 :(得分:2)
Openwith
会干扰附件。由于mu4e
重新使用message
模式,您可以执行以下操作以避免冲突:
;; prevent <openwith> from interfering with mail attachments
(require 'mm-util)
(add-to-list 'mm-inhibit-file-name-handlers 'openwith-file-handler)