[was: Issue with internal directory links]

> 
> Hi Jonathan,
> 
> Jonathan Fox <jonathanfox...@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

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,
> 
> -- 
>  Bastien

Reply via email to