emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Integration of Org mode and mairix


From: Carsten Dominik
Subject: Re: [Orgmode] Integration of Org mode and mairix
Date: Tue, 21 Aug 2007 14:38:58 +0200


On Aug 14, 2007, at 13:29, Adam Spiers wrote:

This leads to the other point I wanted to make, although its scope is
possibly too great for this list: I would greatly prefer any such
solution to allow hyperlinking from within other modes - muse in
particular.

It may not be feasible to convince the different authors to use a single
format for links. However, what I can offer is commands that allow you to
use Org-mode-style links in any mode.  Mind - these links might not be
published correctly by muse - but maybe the Muse-maintainers can be
persuaded to handle Org-mode links as well.

Here are the commands, currently they will only work
if orgstruct-mode has been activated at least once during the
current Emacs session (because a special variable needs to be
initialized).  In 5.05, these commands will be part of org.el
and work independently of orgstruct-mode.

(defun org-open-at-point-global ()
  "Follow a link like Org-mode does.
This command can be called in any mode to follow a link that has
Org-mode syntax."
  (interactive)
  (org-run-like-in-org-mode 'org-open-at-point))

(defun org-insert-link-global ()
  "Insert a link like Org-mode does.
This command can be called in any mode to follow a link that has
Org-mode syntax."
  (interactive)
  (org-run-like-in-org-mode 'org-insert-link))

- Carsten





reply via email to

[Prev in Thread] Current Thread [Next in Thread]