From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dominic Surano Subject: Insert org-id Link at Point via Outline Path Completion Date: Tue, 12 May 2015 19:57:50 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGJb-000131-Lp for emacs-orgmode@gnu.org; Tue, 12 May 2015 15:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsGJX-0003zp-La for emacs-orgmode@gnu.org; Tue, 12 May 2015 15:58:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:53705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGJX-0003zi-Eh for emacs-orgmode@gnu.org; Tue, 12 May 2015 15:58:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YsGJV-000250-11 for emacs-orgmode@gnu.org; Tue, 12 May 2015 21:58:01 +0200 Received: from 141.248.40.0 ([141.248.40.0]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 21:58:01 +0200 Received: from sk8ingdom by 141.248.40.0 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 21:58:01 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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)