When I open an attached file in Org Mode with C-a o or its directory with C-a f it always opens in Emacs instead of the right external program or file browser.

[ What do I mean with "attached": I attach files to an outline with C-a c (or y or m or...). ]

What can I do about that? Problem ist solved.

The Problem appeared in the combination of Ubuntu 17.10 and Emacs 25.2 (or whatever is shipped with Ubuntu 17.10, definitel > 25).

With Windows 10 / Emacs 25.3 and Ubuntu 16.04.3 / emacs 24 shortcuts do what they should do.

  • „right external program” severely depends on individual taste –– for many Emacs users, that's Emacs ;-) Take a look at the org manual's hacking section (C-h i m org), it shows you how to alter org's behaviour. Or, browse the additional org packages at elpa/melpa for an org-plugin which does what you'd prefer.
    – user17303
    Commented Oct 24, 2017 at 0:11
  • You are right, but Emacs offers two options to open attached files with C-a: C-a o opens a an attached file (wherever...) and C-a O forces to open the file wihin Emacs. Even with your reading hints i don't know what to do to solve my problem. Sorry.
    – tester
    Commented Oct 24, 2017 at 16:58
  • Have you tried using C-h k and entering the key combo you use to open attachments? usually, it tells about variables, and often about how to customize them or which defaults they use. If you follow this chain a bit, you'll end up with a variable or list you simply need to edit (or customize via the customize menu).
    – user17303
    Commented Oct 25, 2017 at 13:00
  • Even the problem doesn't exist anymore, your answer was very helpful for me in terms of learning more about Emacs and how to solve problems. Thanks for that! A little more information what I found out with your help: told me that the lisp function org-attach.el is responsible for attaching Documents and the shortcut above did let me take a look at this function. So I find out that perhaps with the customization of the variable 'org-file-apps' I could solve my problem. Thanks, next time I know what to do.
    – tester
    Commented Oct 27, 2017 at 11:35


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.