Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make org syntax links in any emacs buffer look like in org-mode?

Tags:

emacs

org-mode

I am using emacs org-mode for managing my notes. Often I wish to use links to this notes from files, which I am editing in other modes, like AUCTeX.

See here for a descriptive screenshot. (I am not yet allowed to post images here.)

Storing and following this links works pretty well. But I find it disturbing to read the full org syntax of the links: [[file:notes.org::*note][Description]], which is obviously not folded outside of org-mode.

I wonder if there is any minor-mode which provides the folding of such links to a clickable Description, like it is done in org-mode.

like image 671
Manuel Batsching Avatar asked Mar 02 '11 11:03

Manuel Batsching


1 Answers

You can use links outside Org-mode.

4.5 Using links outside Org

You can insert and follow links that have Org syntax not only in Org, but in any Emacs buffer. For this, you should create two global commands, like this (please select suitable global keys yourself):

(global-set-key "\C-c L" 'org-insert-link-global)
(global-set-key "\C-c o" 'org-open-at-point-global)

-- Source: Using-links-outside-Org

Edit (1 Nov 2012): As of October 2011 the minor mode enabling org-like links didn't exist, but there were discussions. Now the minor mode exists, it is called org-link-minor-mode and is included in org-contrib.

like image 56
Mirzhan Irkegulov Avatar answered Oct 10 '22 07:10

Mirzhan Irkegulov