unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Eduardo Ochs <eduardoochs@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Integrating eev and org-capture/org-capture-set-target-location
Date: Fri, 4 Jun 2021 21:14:37 +0300	[thread overview]
Message-ID: <YLptjc81XZDW8crV@protected.localdomain> (raw)
In-Reply-To: <CADs++6jrbUhDVCNwTXJNKwFivgnTcJTas+jebvFFWzzNou6Hpg@mail.gmail.com>

* Eduardo Ochs <eduardoochs@gmail.com> [2021-06-04 19:09]:
> On Fri, 4 Jun 2021 at 03:02, Jean Louis <bugs@gnu.support> wrote:
> >
> > >   (find-orgnode "Capture templates" "file+headline")
> > >   (find-orgnode "Template elements" "\ntarget")
> >
> > Those must be new eev functions.

Not working here, eev mode is always on. Maybe I did not load some
library?

eval: Symbol’s function definition is void: find-orgnode

> Are the sexp hyperlinks to videos working well for you?

I am in developed country for a while, video downloading is anyway
slow and not accessible. Usually I will first download video and then
watch it. I can upload easier than download. Links work probably and I
don't use them as it is not feasible to wait too long, you know.

> By the way, if you would like to experiment with putting your own
> videos online you can create a variant of this function,
> 
>   (find-eev "eev-tlinks.el" "find-eevvideo-links")
>   http://angg.twu.net/eev-current/eev-tlinks.el.html#find-eevvideo-links

Everything ever that comes along is index on my side into the Dynamic
Knowledge Repository. And I can create the eev style links if I want,
but I don't, as other people will not use them.

I am working on link creation depending of the mode. Usually I split
window in two, in one I open Hyperscope, press "w" and link is copied
in other video, here is example, title on top, link down. Link without
title is under-described.

Hans-Peter Dürr "Weil es ums Ganze geht" // Vortrag lang // GLOBART 2011
https://www.youtube.com/watch?v=RKma6xCTIBE

Now my idea is that hyperlinking should be sensitive to the mode, so
if the other mode is mail-mode or message mode, the hyperlink would
look like that above.

But if the other mode is Markdown, the hyperlink has to be in Markdown
style, if it is Org mode, it has to be killed and yanked in Org
markup, or Asciidoc markup, if HTML then in HTML markup. Isn't that a
good idea? User could press prefix C-u and get a choice of link
format, then I could choose eev link. That is how it should be. 

(defun wrs-hyperlink-by-mode (name link)
  "Insert hyperlink formatted corresponding to major mode."
  (cond ((eq major-mode 'adoc-mode) (format "%s[%s]" link name))
	((eq major-mode 'org-mode) (format "[[%s][%s]]" link name))
	((eq major-mode 'markdown-mode) (format "[%s](%s \"%s\")" name link name))
	((eq major-mode 'html-mode) (format "<a href=\"%s\">%s<a>" link name))
	((eq major-mode 'emacs-lisp-mode) (format ";; %s\n;; %s\n" name link))
	(t (format "\n\n<a href=\"%s\">%s<a>\n\n" link name))))

eev is not yet there. You can see that link may be inserted even into
emacs-lisp-mode as commented one. Default is HTML link, but I think it
should be the textual one.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/



  reply	other threads:[~2021-06-04 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04  3:41 Integrating eev and org-capture/org-capture-set-target-location Eduardo Ochs
2021-06-04  6:00 ` Jean Louis
2021-06-04 16:09   ` Eduardo Ochs
2021-06-04 18:14     ` Jean Louis [this message]
2021-06-04 22:28       ` Eduardo Ochs
2021-06-04 23:33         ` Jean Louis

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=YLptjc81XZDW8crV@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=eduardoochs@gmail.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).