From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pillule Newsgroups: gmane.emacs.help Subject: Re: Using pdf-tools Date: Thu, 10 Jun 2021 17:41:12 +0200 Message-ID: <87wnr1ogza.fsf@riseup.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27291"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Julius Hamilton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 10 17:53:22 2021 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 1lrMzh-0006ry-Re for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Jun 2021 17:53:22 +0200 Original-Received: from localhost ([::1]:51634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrMzg-0005CE-UK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Jun 2021 11:53:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrMyC-0003Gv-M3 for help-gnu-emacs@gnu.org; Thu, 10 Jun 2021 11:51:48 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:50490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrMyA-0008NC-2P for help-gnu-emacs@gnu.org; Thu, 10 Jun 2021 11:51:48 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4G17km3w0vzDsDh; Thu, 10 Jun 2021 08:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1623340304; bh=lwk9alyPSZoq5RxbRKYzF76Hg6EIBz9zXOzdMjCiG7g=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=HzswePYFuwHcsx8btJZrVH/NthJSSBplRxmnSxG/CrGX9DzYewZcYbXoMFM/SGdJI U3E450FNEU75vCmqdPSA4VvPqmu4L5xF2mSRb8CYswKRDLAwBg1EiLk0gVbV6jODTE EqnASNZjkqvbrtn1Gv6GAG3UE5RoWMhWhddEd4Xw= X-Riseup-User-ID: 993333018BC6A141C59FDC649E9C4645722C650E31D4AAD385B0BC6B9B79DB97 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4G17kl1Qx1z5wVX; Thu, 10 Jun 2021 08:51:42 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=198.252.153.129; envelope-from=pillule@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:130714 Archived-At: Hi Julius, Julius Hamilton writes: > I noticed that in my home directory I have a .emacs.d file. Some > documentation said people usually have a .emacs file but sometimes also a . > emacs.el file or a .emacs.d/init.el file, as an init file. There are effectively many options possibles, as described by the section 49.4 of the manual, The Emacs Initialization File. https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html > I was wondering, what are the reasons for having these different kinds of > init files? Because peoples may have asked a cleaner file system (less dotfiles in their home directory) but emacs keeps older solutions for backward compatibility. > I added "(pdf-tools-install)" at the end of my init.el file, and restarted > emacs. I tried a command from the pdf-tools docs, "M-x pdf-tools-help RET", > which the system did not recognize. You surely also need to require this library before being able to use it. (require 'pdf-tools) > I was wondering if anyone could give me a hand and explain to me why this > is and what a good next step would be. Should I set up my emacs with a > emacs.el init file instead? This is only an organization matter for your home directory, choose what you like. --