From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: pdf files with openwith only, and only this. Date: Fri, 5 Jul 2019 11:41:14 +0200 Message-ID: References: <87ef36xdxk.fsf@yandex.com> <87a7dudj8c.fsf@debian> <87y31dmlxw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43338) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjKin-00061l-BA for emacs-orgmode@gnu.org; Fri, 05 Jul 2019 05:41:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjKih-0000JB-B9 for emacs-orgmode@gnu.org; Fri, 05 Jul 2019 05:41:33 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:43457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjKic-00005N-UM for emacs-orgmode@gnu.org; Fri, 05 Jul 2019 05:41:29 -0400 Received: by mail-lj1-x235.google.com with SMTP id 16so8607459ljv.10 for ; Fri, 05 Jul 2019 02:41:26 -0700 (PDT) In-Reply-To: <87y31dmlxw.fsf@gmail.com> 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: Tim Cross , Colin Baxter , John Kitchin Cc: "Liste-emacs-orgmode@gnu.org" Dear Tim, John and Colin, You are right Tim, for Gnus, the solution to my problem was here : https://www.emacswiki.org/emacs/MimeTypesWithGnus and here: https://lists.gnu.org/archive/html/info-gnus-english/2016-04/msg00002.html But I just realize that Gnus gives the choice to open "internally", or "externally"... :S Best wishes and many thanks for your very kind help, Jo. Le ven. 5 juil. 2019 =C3=A0 01:16, Tim Cross a =C3= =A9crit : > > > Joseph Vidal-Rosset writes: > > > Le jeu. 07/04/19 juil. 2019 =C3=A0 07:44:08 , John K= itchin > > a envoy=C3=A9 ce message: > >> I don't think org-ref is responsible, except that it installs pdf-tool= s. 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 wit= h > > pdf links in gnus, not in usual org files. (Maybe I should switch f= or > > mu4e, but I hesitate and I would be happy to find a tutorial to do i= t > > with gmail.) > > > > I have solved temporarily the problem with eimp = : > > https://emacs.stackexchange.com/questions/2433/shrink-zoom-scale-images= -in-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. > > My guess is the problem is with doc-view mode and possibly guns setup. I > had a similar issue some years back, but cannot quite remember how I > resolved it. My problem was that I had elisp I wrote which would use > external viewers for various document types (e.g. word doc, pdf, etc), > but when I tried to use it, Emacs would jump in the middle and use > docView mode to display it inside emacs itself. > > From memroy, the basic fix was to turn off doc-view-mode (posibly check > out the customization group). With respect to gnus (and other mailers), > most of them include some sort of variable which sets which mime types > can be displayed internally. If you don't want to completely disable > doc-view-mode, you should be able to change this setting to say that > PDFs are tro be displayed externally using whatever program is > associated with that mime type. > > hth > > Tim > > -- > Tim Cross >