From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: make svg files open in inkscape? Date: Sat, 17 Feb 2018 18:31:01 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e082fd1c4657fd80565735ec6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enEks-0001xF-1u for emacs-orgmode@gnu.org; Sat, 17 Feb 2018 21:31:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enEkq-0004vl-Ts for emacs-orgmode@gnu.org; Sat, 17 Feb 2018 21:31:06 -0500 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:36544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enEkq-0004tj-MY for emacs-orgmode@gnu.org; Sat, 17 Feb 2018 21:31:04 -0500 Received: by mail-wr0-x231.google.com with SMTP id u15so6377940wrg.3 for ; Sat, 17 Feb 2018 18:31:04 -0800 (PST) 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: Org Mode List --089e082fd1c4657fd80565735ec6 Content-Type: text/plain; charset="UTF-8" I previously wrote this solution: https://emacs.stackexchange.com/questions/38345/open-an-external-sketch-drawing-application to make svg links open in inkscape, even if they don't already exist. I wanted to try using org-file-apps for this: #+BEGIN_SRC emacs-lisp (defun my-svg (path link) (message "path: %s - %s" path link)) (add-to-list 'org-file-apps '("\\.svg\\'" . my-svg)) #+END_SRC but i John ----------------------------------- 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 --089e082fd1c4657fd80565735ec6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I previously wrote this solution:=C2=A0https://emacs.stackexchange.com/questions/38345/open-an-external-= sketch-drawing-application=C2=A0

to make svg links o= pen in inkscape, even if they don't already exist.

=
I wanted to try using org-file-apps for this:

#+BEGIN_SRC emacs-lisp
(defun my-svg (path link)
=
=C2=A0 (message "path: %s - %s" path link))
<= div>
(add-to-list 'org-file-apps '("\\.svg\\'= ;" . my-svg))
#+END_SRC

but i=C2=A0=
John

-----------------------------------
Professor John Kit= chin=C2=A0
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=
--089e082fd1c4657fd80565735ec6--