all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `M-x org-open-at-point` on `[[file:/path/file.hs][name]]` says: "Running less /home/path/file.hs"
@ 2022-04-06 17:26 chris
  2022-04-11 23:00 ` chris
  0 siblings, 1 reply; 2+ messages in thread
From: chris @ 2022-04-06 17:26 UTC (permalink / raw)
  To: emacs-orgmode

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

[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

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


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-11 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.