From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: pdf files with openwith only, and only this. Date: Thu, 4 Jul 2019 14:05:12 -0400 Message-ID: References: <87ef36xdxk.fsf@yandex.com> <87a7dudj8c.fsf@debian> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006a7c9d058cded27f" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59006) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj66r-0002iS-J7 for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 14:05:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj66q-0004FM-23 for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 14:05:29 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:36485) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hj66o-0004Dp-6L for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 14:05:27 -0400 Received: by mail-wm1-x32e.google.com with SMTP id g67so772820wme.1 for ; Thu, 04 Jul 2019 11:05:25 -0700 (PDT) In-Reply-To: <87a7dudj8c.fsf@debian> 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: Joseph Vidal-Rosset Cc: Colin Baxter , "Liste-emacs-orgmode@gnu.org" --0000000000006a7c9d058cded27f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable you might also try this: https://emacs.stackexchange.com/questions/3105/how-to-use-an-external-progr= am-as-the-default-way-to-open-pdfs-from-emacs/3106 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 On Thu, Jul 4, 2019 at 9:26 AM Joseph Vidal-Rosset < joseph.vidal.rosset@gmail.com> wrote: > Le jeu. 07/04/19 juil. 2019 =C3=A0 07:44:08 , John Kit= chin > a envoy=C3=A9 ce message: > > I don't think org-ref is responsible, except that it installs pdf-tools= . > When I click on a link like > > [[./2019-07-04.pdf]] it opens in acrobat for me. > > > > I don't have anything fancy > > org-file-apps is a variable defined in `org.el'. > > Its value is > > ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) > > ("\\.pdf\\'" . default)) > > > > which I guess means on osx that it gets opened with "open". > > > > It looks like you can do this > > > > #+BEGIN_SRC emacs-lisp > > (setf (cdr (assoc "\\.pdf\\'" org-file-apps)) "evince %s") > > #+END_SRC > > > > to make it open in evince. > > Dear John, > > Thanks for your reply. In fact my problem is only at the moment with > pdf links in gnus, not in usual org files. (Maybe I should switch for > mu4e, but I hesitate and I would be happy to find a tutorial to do it > with gmail.) > > I have solved temporarily the problem with eimp : > > https://emacs.stackexchange.com/questions/2433/shrink-zoom-scale-images-i= n-image-mode > > and the pdf in emacs are now more easily readable for me. > > Best wishes, and again, to Colin and to you, many thanks. > > -- > Jo > --0000000000006a7c9d058cded27f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
you might also try this:=C2=A0https://emacs.stackexchange.com/question= s/3105/how-to-use-an-external-program-as-the-default-way-to-open-pdfs-from-= emacs/3106

John

-----------------------------------
Professor John = Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical EngineeringCarnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
<= div dir=3D"ltr">@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Thu, Jul 4, 2019 at 9:26 AM Joseph Vidal-= Rosset <joseph.vidal.ro= sset@gmail.com> wrote:
Le=C2=A0 =C2=A0jeu.=C2=A0 =C2=A007/04/19=C2=A0 =C2=A0juil.=C2= =A0 =C2=A02019=C2=A0 =C2=A0 =C3=A0=C2=A0 =C2=A007:44:08=C2=A0 =C2=A0,=C2=A0= =C2=A0John=C2=A0 =C2=A0Kitchin
<jkitchin@a= ndrew.cmu.edu> a envoy=C3=A9 ce message:
> I don't think org-ref is responsible, except that it installs pdf-= tools. When I click on a link like=C2=A0
> [[./2019-07-04.pdf]] it opens in acrobat for me.
>
> I don't have anything fancy
> org-file-apps is a variable defined in `org.el'.
> Its value is
> ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?= html?\\'" . default)
> =C2=A0("\\.pdf\\'" . default))
>
> which I guess means on osx that it gets opened with "open".<= br> >
> It looks like you can do this
>
> #+BEGIN_SRC emacs-lisp
> (setf (cdr (assoc "\\.pdf\\'" org-file-apps)) "evin= ce %s")
> #+END_SRC
>
> to make it open in evince.

Dear John,

Thanks for=C2=A0 your reply. In=C2=A0 fact my problem is=C2=A0 only at the= =C2=A0 moment with
pdf links=C2=A0 in gnus, not=C2=A0 in usual org files.=C2=A0 (Maybe I shoul= d=C2=A0 switch for
mu4e, but I=C2=A0 hesitate and I would be=C2=A0 happy to find a tutorial=C2= =A0 to do it
with gmail.)

I=C2=A0 =C2=A0 have=C2=A0 =C2=A0 solved=C2=A0 =C2=A0 temporarily=C2=A0 =C2= =A0 the=C2=A0 =C2=A0problem=C2=A0 =C2=A0 with=C2=A0 =C2=A0 eimp=C2=A0 =C2= =A0 :
https://emacs.s= tackexchange.com/questions/2433/shrink-zoom-scale-images-in-image-mode<= br>
and the pdf in emacs are now more easily readable for me.

Best wishes, and again, to Colin and to you, many thanks.

--
Jo
--0000000000006a7c9d058cded27f--