[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get an org-link to open a program in eshell
From: |
Kyle Meyer |
Subject: |
Re: how to get an org-link to open a program in eshell |
Date: |
Sat, 25 Apr 2020 04:39:13 +0000 |
Joseph Vidal-Rosset <address@hidden> writes:
> I'm trying to get something via an org-link. I suspect that it is
> possible, but the documentation is not clear enough for me to get it.
>
> I want to make an org-link that get me directly in eshell a program,
> and if it is possible to do it, I will bookmark this org-link.
What have you tried? Have you looked at ol-eshell.el?
> To explain precisely what I want to do: I have an executable in
> /usr/local/bin that I have called SMinlog , in a shell, the command
> SMinlog -p -i open directly the following output:
> SEQUENT:
> and in the my Linux desktop xfce I have also an icon that is a
> shortcut to open directly this program in a xfce4-terminal.
IIUC what you want boils down to having an eshell link that runs a
command. I don't use ol-eshell myself, but, taking a quick look, this
seems to be possible. For example, say I have a link like
[[eshell:*eshell*:echo hello]]
Following that gives me
Welcome to the Emacs shell
/tmp $ echo hello
hello
/tmp $