From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: version dependent org-links Date: Fri, 04 Nov 2016 08:33:33 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2dgl-0001IX-71 for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 08:33:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2dge-00025M-Pr for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 08:33:43 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:36754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2dge-00023O-ID for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 08:33:36 -0400 Received: by mail-qk0-x236.google.com with SMTP id o68so94675507qkf.3 for ; Fri, 04 Nov 2016 05:33:36 -0700 (PDT) Received: from Johns-MacBook-Air.local (c-67-171-67-30.hsd1.pa.comcast.net. [67.171.67.30]) by smtp.gmail.com with ESMTPSA id p63sm7361359qtd.35.2016.11.04.05.33.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Nov 2016 05:33:34 -0700 (PDT) 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" To: "emacs-orgmode@gnu.org" @neurolit suggested this approach for org-version dependent links in the mu4e repo. I should have thought of that too! Its totally robust. (if (fboundp 'org-link-set-parameters) (org-link-set-parameters "mu4e" :follow #'org-mu4e-open :store #'org-mu4e-store-link) (org-add-link-type "mu4e" 'org-mu4e-open) (add-hook 'org-store-link-functions 'org-mu4e-store-link)) -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu