all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: chad <yandros@gmail.com>
Cc: "Clément Pit-Claudel" <cpitclaudel@gmail.com>,
	"EMACS development team" <emacs-devel@gnu.org>
Subject: Re: interactive feel of Emacs: the need for speed, and -Q [measure.el]
Date: Thu, 23 Apr 2020 16:57:31 -0400	[thread overview]
Message-ID: <jwvsggtsz28.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAO2hHWb9+QGsTcOwgSGNp0j8GWzAht=AJ0vNWvW_VX4AagJ=Sw@mail.gmail.com> (chad's message of "Thu, 23 Apr 2020 13:05:43 -0700")

> I long ago adopted the use of require in my .emacs file as a well-worn
> shorthand for "load this unless it's already loaded". Is there an
> alternative that I should be using instead?

If what you want is "load this unless it's already loaded", then
`require` is the answer.  But the code in ~/.emacs should not about
about "loading" it should be about enabling/disabling: loading a file
(other than the init file, that is) should never noticeably affect
Emacs's behavior, so "loading" should be of no concern when writing your
config file (unless you're concerned about pre-loading a package for
performance reasons, maybe).


        Stefan




  parent reply	other threads:[~2020-04-23 20:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  5:00 interactive feel of Emacs: the need for speed, and -Q [measure.el] Emanuel Berg via Users list for the GNU Emacs text editor
2020-03-30 15:32 ` Drew Adams
2020-04-07 16:25   ` Emanuel Berg via Emacs development discussions.
2020-04-07 16:49     ` Michael Welsh Duggan
2020-04-08  5:51       ` Emanuel Berg via Emacs development discussions.
2020-04-08 14:17         ` Michael Welsh Duggan
2020-04-12  1:16           ` Emanuel Berg via Emacs development discussions.
2020-04-12  2:51             ` Michael Welsh Duggan
2020-04-14 23:00               ` Emanuel Berg via Emacs development discussions.
2020-04-15  1:34                 ` T.V Raman
2020-04-15  2:21                   ` Emanuel Berg via Emacs development discussions.
2020-04-15 14:51                     ` T.V Raman
2020-04-15 15:43             ` Basil L. Contovounesios
2020-04-15 16:06               ` Stefan Monnier
2020-04-16 19:14                 ` Stephen Leake
2020-04-16 19:59                   ` Clément Pit-Claudel
2020-04-16 20:14                     ` Stefan Monnier
2020-04-23 20:05                       ` chad
2020-04-23 20:43                         ` Stephen Leake
2020-04-23 20:57                         ` Stefan Monnier [this message]
2020-04-23 23:35                           ` chad
2020-04-24  3:28                             ` Stefan Monnier
2020-04-17  8:48                     ` Stephen Leake
2020-04-16 20:04                   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsggtsz28.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cpitclaudel@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=yandros@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.