all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: chris <inkbottle007@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs"
Date: Tue, 12 Apr 2022 01:00:29 +0200	[thread overview]
Message-ID: <5568819.DvuYhMxLoT@pluto> (raw)
In-Reply-To: <3664117.kQq0lBPeGt@pluto>

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

On Wednesday, 6 April 2022 19:26:38 CEST chris wrote:
> [was: Issue with internal directory links]
> 
> > Hi Jonathan,
> > 
> > Jonathan Fox <jonathanfox223@gmail.com> writes:
> >> Here's a link I'm using:
> >> 
> >> [[./templates][Templates]]
> 
> I have similar issue with `[[file:/path/file.hs][name]]`
> `M-x org-open-at-point` says:
> "Running less /home/path/file.hs"
> In terminal:
> `mimetype /home/path/file.hs` => `text/x-haskell`
> 
> ```
> org-file-apps is a variable defined in ‘org.el’.
> Its value is
> ((auto-mode . emacs)
>  (directory . emacs)
>  ("\\.mm\\'" . default)
>  ("\\.x?html?\\'" . default)
>  ("\\.pdf\\'" . default))
> ```
> 
> I guess I can configure it alright, but I have no idea why it is invoking
> `less` in the first place. I also have no idea where the output of `less`
> should be found.
> 
> `org-version` => 9.5.2
> `emacs-version` => 29.0.50

Using `https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/[1]`, I've guessed that 
`(straight-use-package 'haskell-mode)` should fix it, and it did.

> 
> Thanks,
> Chris
> 
> > You can try adding (directory . emacs) to `org-file-apps' in your
> > configuration like this:
> > 
> > (setq org-file-apps
> > 
> >       '((auto-mode . emacs)
> >       
> >       	(directory . emacs)
> > 	
> > 	("\\.mm\\'" . default)
> > 	("\\.x?html?\\'" . default)
> > 	("\\.pdf\\'" . default)))
> > 
> > A bug related to mailcap handling has been fixed in Emacs 27,
> > perhaps this is what caused the change in your setup.  I added
> > (directory . emacs) in `org-file-apps' by default in the master
> > branch.
> > 
> > Thanks for reporting this,



--------
[1] https://list.orgmode.org/87y2pbv4pw.fsf@kyleam.com/T/

[-- Attachment #2: Type: text/html, Size: 6562 bytes --]

      reply	other threads:[~2022-04-11 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 17:26 `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs" chris
2022-04-11 23:00 ` chris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5568819.DvuYhMxLoT@pluto \
    --to=inkbottle007@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.