all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Add custom bare link syntax for intranet
@ 2016-06-19  7:00 Joe Schafer
  2016-06-21 21:28 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Schafer @ 2016-06-19  7:00 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi all,

How can I linkify the following intranet links in org-mode?

    intra/link1-description
    code/description

By linkify, I mean the links should be fontified and clickable in org-mode.

I don't want to add a custom link handler like `intra:` because I often
copy and paste links from the intranet.

I tried the following hack which worked for fontification, but not clicking.

    (setq org-plain-link-re
          (concat
           "\\("
           org-plain-link-re
           "\\|"
           "intra/[^ \n.]+"
           "\\)"))


I originally posted this at emacs.stackexchange,
http://emacs.stackexchange.com/posts/23828

--
Joe Schafer

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

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

* Re: Add custom bare link syntax for intranet
  2016-06-19  7:00 Add custom bare link syntax for intranet Joe Schafer
@ 2016-06-21 21:28 ` Nicolas Goaziou
  2016-06-23  4:11   ` Joe Schafer
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2016-06-21 21:28 UTC (permalink / raw)
  To: Joe Schafer; +Cc: emacs-orgmode

Joe Schafer <joesmoe10@gmail.com> writes:

> How can I linkify the following intranet links in org-mode?
>
>     intra/link1-description
>     code/description
>
> By linkify, I mean the links should be fontified and clickable in org-mode.
>
> I don't want to add a custom link handler like `intra:` because I often
> copy and paste links from the intranet.

You cannot, at least without rewriting how Org handles links. However,
I don't think how having "intra:" prefix is a burden, since you can
easily add it automatically with a function.

Regards,

-- 
Nicolas Goaziou

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

* Re: Add custom bare link syntax for intranet
  2016-06-21 21:28 ` Nicolas Goaziou
@ 2016-06-23  4:11   ` Joe Schafer
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Schafer @ 2016-06-23  4:11 UTC (permalink / raw)
  To: emacs-orgmode

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

Adding http:// works.  I'll stick with that for now.

On Tue, Jun 21, 2016 at 2:28 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Joe Schafer <joesmoe10@gmail.com> writes:
>
> > How can I linkify the following intranet links in org-mode?
> >
> >     intra/link1-description
> >     code/description
> >
> > By linkify, I mean the links should be fontified and clickable in
> org-mode.
> >
> > I don't want to add a custom link handler like `intra:` because I often
> > copy and paste links from the intranet.
>
> You cannot, at least without rewriting how Org handles links. However,
> I don't think how having "intra:" prefix is a burden, since you can
> easily add it automatically with a function.
>
> Regards,
>
> --
> Nicolas Goaziou
>

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

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

end of thread, other threads:[~2016-06-23  4:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-19  7:00 Add custom bare link syntax for intranet Joe Schafer
2016-06-21 21:28 ` Nicolas Goaziou
2016-06-23  4:11   ` Joe Schafer

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.