Re: how to get an org-link to open a program in eshell
Many thanks Kyle for your reply, In fact I have succeeded to open directly some programs with eshell thanks to org-links like the following one: [[eshell:program_name]] If I put these org-links into an org file and if I have bookmarked this file. Nevertheless, I do not find that this solution is very elegant. In my bookmark file I have this part of code: #1=(#("eshell-launcher" 0 15 (bmkp-full-record #1#)) (buffer-name . "*dashboard*") (visits . 2) (time 24213 34946 832780 22000) (created 24213 34859 529449 8000) (position . 0) (function . eshell) (handler . bmkp-jump-function)) and it works correctly: via the bookmark in my dashboard, I can open eshell . But I have not succeed to write a code in this bookmark file to get a program that is opened directly via eshell, hence org-links in an org file. All that I wrote in this bookmark file failed. Any suggestion is welcome, even if it is not a serious problem to open an org file first. It is just an elegance issue. Best wishes, and again, thanks, Jo. -- Joseph
Re: how to get an org-link to open a program in eshell
Joseph Vidal-Rosset 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 $
how to get an org-link to open a program in eshell
Hi everybody, 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. 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. I suspect that an org-link could provide the same function directly in eshell. If I am right, I would be happy to find the solution, but I am afraid that I need help. Best wishes, Jo.