emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Insert org-id Link at Point via Outline Path Completion
@ 2015-05-12 19:57 Dominic Surano
  2015-07-31  6:43 ` Xebar Saram
  0 siblings, 1 reply; 14+ messages in thread
From: Dominic Surano @ 2015-05-12 19:57 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I use org-mode a lot like a wiki so links to other org-mode headings are 
very common. Currently, I navigate to the heading or pull it up in an 
agenda view, store the link with C-l, going back to where I want to 
insert the link, then insert the link with C-c C-l RET. This is a bit 
time consuming.

Instead, I would prefer to map a key that allows me to insert a link at 
the current point using tab completion similar to org-refile (C-c C-w). 
Looking through org-id.el, it seems like org-id-get-with-outline-path 
completion was designed for this purpose. I tried:

(global-set-key "\C-ci" (lambda () (interactive) (org-id-get-with 
outline-path-completion)))

but it didn't work as intended. Anyone have any ideas?

Thanks!
-D

For reference, I have the following set in my configuration:

;; Use global IDs
(require 'org-id)
(setq org-id-link-to-org-use-id t)

;; Update ID file .org-id-locations on startup
(org-id-update-id-locations)

;; Targets include this file and any file contributing to the agenda - 
up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxlevel . 9)
                                 (org-agenda-files :maxlevel . 9))))
(setq org-refile-use-outline-path 'file)
(setq org-outline-path-complete-in-steps t)
(setq org-refile-allow-creating-parent-nodes t)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-08-02 18:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 19:57 Insert org-id Link at Point via Outline Path Completion Dominic Surano
2015-07-31  6:43 ` Xebar Saram
2015-07-31  7:13   ` Eric Abrahamsen
2015-08-01  9:07   ` Bernhard Pröll
2015-08-01 13:20     ` Xebar Saram
2015-08-01 16:33       ` John Kitchin
2015-08-01 17:36         ` Xebar Saram
2015-08-01 17:49           ` Xebar Saram
2015-08-01 19:03             ` John Kitchin
2015-08-01 19:17               ` Dominic Surano
2015-08-02 18:20               ` Xebar Saram
2015-08-02 18:31                 ` John Kitchin
2015-08-02 18:38                   ` Xebar Saram
2015-08-02  7:03       ` Bernhard Pröll

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