From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: use pdf-tools in Emacs. Date: Wed, 26 Apr 2023 10:01:24 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5582"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Rudolf Schlatte Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 26 04:02:32 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prUUK-0001Ia-Ed for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 04:02:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prUTj-0005RU-2Z; Tue, 25 Apr 2023 22:01:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prUTa-0005R5-5c for help-gnu-emacs@gnu.org; Tue, 25 Apr 2023 22:01:47 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prUTR-0005Rb-Rs for help-gnu-emacs@gnu.org; Tue, 25 Apr 2023 22:01:44 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-94f4b911570so997026566b.0 for ; Tue, 25 Apr 2023 19:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682474495; x=1685066495; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6FvObZpbPsPUW4SlTqIA04ndL7wgzBsLqDi9Xesm7TA=; b=K/tExqBqCFKGsUVLGuKdmKhYYTffGMKWu2Ogig/sBumuifc6svUaQv93eqx1Wxy2hm HHq1si9tcs4MQBzjB6aedsiPuN2Y39SvnfwDwWrToZJm0uUnjSCPQyV1PB6tdGLcmTNS 7yV66XibbtENbIabOvCZT9GdofuZjQrznNSvhJ24rzu+eizhbVVSPOqui6ToLPIcSBM5 haxE6Dx1YmbyyLf70BD+f6sBs4or7K6Oo8HZXcHjXxA59wB3S7sPmeHtLdy61Xj2Ze4o yMT6jP2CFrHrPX4/TylJbjsxal3X/OzSlNKCq8PLQdEkuRjot2NNiG74+qZaroxiDg1R 5/qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682474495; x=1685066495; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6FvObZpbPsPUW4SlTqIA04ndL7wgzBsLqDi9Xesm7TA=; b=EKLqZh1F0g1du8dW08Zj9IsuZ8+PYiSmHG0466LhbMWzrm9cMNoZWMw/j7QPNIARv2 PDsBZUux37iP9YGExcaZQtbhmibzQkTpzfnBpllQq0SbC6TkcEUqharupwpECHjlnzvB AiP3sCGeO8jvbVvpYmRv9JJymRp6KzF6P53vvfnTMK3qwmeyaXHYc1jyn2luCfEq7c/C 6jHC3vJAWkfkKZOAU5QLJVhgtmt0UxD117n6K2FbsAPUQz/ZztTGiVq0cranDZpKB8pr Oqp/c7B7uYeql8LCzSd4CMpVxK2KhLPnyCgo6QWbPbUaVerCdzOtvacaKLbsf1lqDZhP FvcQ== X-Gm-Message-State: AAQBX9cEd7mHc+S3gvFcJ/PDEkKImjfbm6QXz75EnmMYDXW0ZnRiCxkX qk7eTOs303t8EpYzM7+ZDehhzb2T+3f6Ks6Be9tskvfrtAmRqCCH X-Google-Smtp-Source: AKy350ZAfbccFmZKd6AoA3EZRAvuPOH+GnLUKFjzxCNWjcE5TgvVX56sTV43yXs4THSwi7SBPbJScutGxvs9Tq8+rb4= X-Received: by 2002:a17:906:b2d7:b0:94a:5a9e:9da0 with SMTP id cf23-20020a170906b2d700b0094a5a9e9da0mr13956354ejb.77.1682474495507; Tue, 25 Apr 2023 19:01:35 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143384 Archived-At: On Tue, Apr 25, 2023 at 11:10=E2=80=AFPM Rudolf Schlatte wrote: > > Hongyi Zhao writes: > > > I try to use pdf-tools [1] in Emacs, but meet the following problem: > > Have you tried M-x pdf-tools-install RET ? Yes. This way works. > That command compiles the > helper program that pdf-tools needs to display pdfs. Also see the > documentation of `pdf-loader-install`, which is another function > provided by pdf-tools that I think is meant to be added to the user's > init.el file. In fact, I already have the following configuration in my init.el file, but it doesn't seem to automatically compile and install pdf-tools: (use-package pdf-tools ;;https://github.com/jwiegley/use-package#magic-handlers :magic ("%PDF" . pdf-view-mode) :config (pdf-tools-install :no-query) ;; C-h o pdf-loader-install RET ;; This function acts as a replacement for =E2=80=98pdf-tools-install=E2= =80=99 and ;; makes Emacs load and use PDF Tools as soon as a PDF file is ;; opened, but not sooner. ;;(pdf-loader-install) ) Regards, Zhao