* require and the package management system
@ 2014-01-16 12:28 aidy lewis
2014-01-16 13:03 ` Tim Visher
2014-01-16 13:33 ` Luca Ferrari
0 siblings, 2 replies; 3+ messages in thread
From: aidy lewis @ 2014-01-16 12:28 UTC (permalink / raw)
To: help-gnu-emacs
Emacs users,
I currently use Emacs 24 and its package management system.
However, my .emacs file is littered with 'require' statements
(require 'rainbow-delimiters)
(require 'auto-complete-config)
Am I correct to say, that 'require' is not needed in my config if I
use the package manager system?
Many Thanks
Aidy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: require and the package management system
2014-01-16 12:28 require and the package management system aidy lewis
@ 2014-01-16 13:03 ` Tim Visher
2014-01-16 13:33 ` Luca Ferrari
1 sibling, 0 replies; 3+ messages in thread
From: Tim Visher @ 2014-01-16 13:03 UTC (permalink / raw)
To: aidy lewis; +Cc: emacs
On Thu, Jan 16, 2014 at 7:28 AM, aidy lewis <aidy.lewis@gmail.com> wrote:
> I currently use Emacs 24 and its package management system.
>
> However, my .emacs file is littered with 'require' statements
>
> (require 'rainbow-delimiters)
> (require 'auto-complete-config)
>
> Am I correct to say, that 'require' is not needed in my config if I
> use the package manager system?
It's possible. Many of the packages installed by the package manager
use magic 'autoload' comments that automatically export the most used
symbols into the global namespace so you can address them and have the
rest of the library required automatically.
But it's also possible that no such autoload statements were used and
thus you still need to require (or autoload yourself) the library so
you can use it. It really comes down to a per library evaluation.
I would say that requires are often not needed and the easiest way for
you to find out which ones truly are is to remove them all (on a clean
commit of your .emacs file!) and try launching emacs.
eval-after-load and autoload are just two of the many ways you can
make emacs start faster if you're requiring too much.
--
In Christ,
Timmy V.
http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: require and the package management system
2014-01-16 12:28 require and the package management system aidy lewis
2014-01-16 13:03 ` Tim Visher
@ 2014-01-16 13:33 ` Luca Ferrari
1 sibling, 0 replies; 3+ messages in thread
From: Luca Ferrari @ 2014-01-16 13:33 UTC (permalink / raw)
To: aidy lewis; +Cc: help-gnu-emacs
On Thu, Jan 16, 2014 at 1:28 PM, aidy lewis <aidy.lewis@gmail.com> wrote:
> Am I correct to say, that 'require' is not needed in my config if I
> use the package manager system?
Not sure I got the point here, but require is the instruction to load
a specific module, so you can have installed several module that are
"sleeping" because not required any more.
Luca
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-16 13:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 12:28 require and the package management system aidy lewis
2014-01-16 13:03 ` Tim Visher
2014-01-16 13:33 ` Luca Ferrari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).