emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joe Schafer <joesmoe10@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Add custom bare link syntax for intranet
Date: Sun, 19 Jun 2016 07:00:30 +0000	[thread overview]
Message-ID: <CAOGO9CrrhnJE4NALrkK2yLR78Lf32p-+S1Hb4tY=daOYFeox7w@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2016-06-19  7:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-19  7:00 Joe Schafer [this message]
2016-06-21 21:28 ` Add custom bare link syntax for intranet Nicolas Goaziou
2016-06-23  4:11   ` Joe Schafer

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.orgmode.org/

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

  git send-email \
    --in-reply-to='CAOGO9CrrhnJE4NALrkK2yLR78Lf32p-+S1Hb4tY=daOYFeox7w@mail.gmail.com' \
    --to=joesmoe10@gmail.com \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).