Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3272592
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:50:32+00:00 2026-05-17T18:50:32+00:00

In an Emacs org-mode file, when I click on a PDF the file opens

  • 0

In an Emacs org-mode file, when I click on a PDF the file opens in a PDF viewer. Similarly, when I click on a URL it opens in a web browser. But when I click on a path to an image file, the byte stream opens as text in the editor. How do I configure Emacs/org-mode to open images with a specified application, say an image editor or a browser?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:50:32+00:00Added an answer on May 17, 2026 at 6:50 pm

    In org-mode, this is org-file-apps that control what to do when clicking on a URL-like text.

    It is configured by default to :

    ((auto-mode . emacs)
     ("\\.mm\\'" . default)
     ("\\.x?html?\\'" . default)
     ("\\.pdf\\'" . default))
    

    As said in org-file-apps help : auto-mode matches files that are matched by any entry in auto-mode-alist, so all files Emacs knows how to handle. Using this with command emacs will open most files in Emacs.

    You may have image file extension configured in auto-mode-alist. You could override this alist by doing something like this in your .emacs (for example, for png files) :

    (add-hook 'org-mode-hook
          '(lambda ()
                 (setq org-file-apps
                       (append '(
                                 ("\\.png\\'" . default)
                                 ) org-file-apps ))))
    

    With this code, when I click on a link like this :

    file:///e:/jrx/emacs/image.png
    

    It opens the file outside emacs, using the default OS program associated to this file extension.

    You don’t have to change org-file-apps-defaults-windowsnt, org-file-apps-defaults-gnu or org-file-apps-defaults-macosx to use the OS default program associated to the file extension.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to give emacs' org-mode a try. What is the shortest path for
I'm making a table in emacs org-mode of sunrise-commander commands from the .el file
In Org-mode when I try to open a link to a PDF file nothing
I really love org-mode in emacs and want to customize a few things. While
I can't get 'remember' to work in org-mode of emacs. I'm on snow leopard.
I have started using emacs org-mode recently to maintain my TODO lists. I have
I want to schedule a task in emacs org-mode to show up multiple times
I started to use the Emacs org-mode for my todo lists. However, when I
I am using emacs org-mode for managing my notes. Often I wish to use
I am trying to put the Microsoft Word document in emacs using org-mode. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.