emacs-orgmode@gnu.org archives
 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

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