org.el: Fontify links to current buffer when inserting a link.
commit1e34c5d34f61823fb1671d72d95e6547950043db
authorBastien Guerry <bzg@altern.org>
Fri, 3 Aug 2012 12:08:20 +0000 (3 14:08 +0200)
committerBastien Guerry <bzg@altern.org>
Fri, 3 Aug 2012 12:08:20 +0000 (3 14:08 +0200)
tree66fde39526aaf85c7a56a5e0c79e56fda3a0596a
parent7fdd49dd336a275d043c4735a278ccac7b5c1b1f
org.el: Fontify links to current buffer when inserting a link.

* org.el (org-link-to-org-use-id): use `org-capture' instead
of `org-remember' in the docstring.
(org-link-fontify-links-to-this-file): New function to fontify
links to the current buffer in `org-stored-links'.
(org-store-link): Small code simplification.
(org-link-prettify): Enclose literal links into <...> instead
of [[...]].
(org-insert-link): Use `org-link-fontify-links-to-this-file'.
Also allow completion over links' descriptions, as well as
links destinations.  When the user uses the description for
completion, don't prompt again for a description.

Thanks to Yagnesh Raghava Yakkala who suggested this.
lisp/org.el