From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Schafer Subject: Add custom bare link syntax for intranet Date: Sun, 19 Jun 2016 07:00:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11352a06468c1805359c2534 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEWip-0007ZS-TV for emacs-orgmode@gnu.org; Sun, 19 Jun 2016 03:00:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEWin-0006b8-L5 for emacs-orgmode@gnu.org; Sun, 19 Jun 2016 03:00:42 -0400 Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]:32966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEWin-0006au-FG for emacs-orgmode@gnu.org; Sun, 19 Jun 2016 03:00:41 -0400 Received: by mail-vk0-x235.google.com with SMTP id d185so162550189vkg.0 for ; Sun, 19 Jun 2016 00:00:40 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a11352a06468c1805359c2534 Content-Type: text/plain; charset=UTF-8 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 --001a11352a06468c1805359c2534 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

How can I linkify th= e following intranet links in org-mode?

=C2=A0 =C2= =A0 intra/link1-description
=C2=A0 =C2=A0 code/description
<= div>
By linkify, I mean the links should be fontified and cli= ckable in org-mode.

I don't want to add a cust= om 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.

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

I originally posted this at emacs.stackexchan= ge,=C2=A0http://emac= s.stackexchange.com/posts/23828

--
J= oe Schafer

--001a11352a06468c1805359c2534--