tag:blogger.com,1999:blog-32049549.post5059573551398249900..comments2023-11-02T08:35:02.778-07:00Comments on A Nickel's Worth: Effective .emacsJacob Gabrielsonhttp://www.blogger.com/profile/13887274100244616103noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-32049549.post-42802363640661369252013-03-11T18:02:57.595-07:002013-03-11T18:02:57.595-07:00This comment has been removed by the author.Coryhttps://www.blogger.com/profile/00454681375299606113noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-34371081070514076442009-04-28T07:23:00.000-07:002009-04-28T07:23:00.000-07:00I've chosen another approach to the REQUIRE proble...I've chosen another approach to the REQUIRE problem: I prefer to be warned of the missing libraries, still not being stopped because of it -- as I also run Emacs on several different machines, with different installations.<br /><br />Have a look at my .emacs file on http://www.mygooglest.com/fni/dot-emacs.html and see my function TRY-REQUIRE.Unknownhttps://www.blogger.com/profile/09213050034090590555noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-43672550300424759542008-01-30T11:35:00.000-08:002008-01-30T11:35:00.000-08:00@Nicko: oops, forgot to mention that that requires...@Nicko: oops, forgot to mention that that requires that you "require cl" -- I'll update the post.Jacob Gabrielsonhttps://www.blogger.com/profile/13887274100244616103noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-42727997263010758772008-01-29T09:52:00.000-08:002008-01-29T09:52:00.000-08:00I have recently started to use emacs, but the load...I have recently started to use emacs, but the load time already annoys me quite a lot.<BR/><BR/>(I mainly use emacs with auctex/reftex for editing latex files.)<BR/><BR/>I tried using #5 to find out whats causing it, but all I get is "Symbol's function definition is void: destructuring-bind". Any ideas?sdfasfasfsfsfashttps://www.blogger.com/profile/00057568950694027974noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-36867289080367823652007-12-26T10:30:00.000-08:002007-12-26T10:30:00.000-08:00@fawlty: just because you should never quit emacs ...@fawlty: just because you should never quit emacs doesn't mean that forces beyond your control won't force you to quit (e.g., machine crashes, upgrades, etc).Jacob Gabrielsonhttps://www.blogger.com/profile/13887274100244616103noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-52074154920279334582007-12-26T09:33:00.000-08:002007-12-26T09:33:00.000-08:00Why bother with #5 when you already have #1?Why bother with #5 when you already have #1?Unknownhttps://www.blogger.com/profile/05279795329912980031noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-2323458977102750812007-12-25T15:04:00.000-08:002007-12-25T15:04:00.000-08:00@cbsmith: The reason to autoload isn't solely to i...@cbsmith: The reason to autoload isn't solely to improve startup load time (although that's still appreciated when your machine crashes or reboots, etc), it's also to reduce errors on startup (when loads or function calls fail for stuff that you weren't going to use anyway) -- this is especially true when you are using many different machines (for example, I have several laptops, two work machines, plus several virtual machines, and use the same .emacs file on Linux, Windows and Mac OS X).<BR/><BR/>@pluskid: multi-tty sounds cool, I'll have to check that out. dump-emacs likewise sounds like a viable thing but I'm guessing it wouldn't work for me because: I'm tweaking my .emacs all the time and it wouldn't solve the problem of keeping my .emacs error-free on multiple different machines/platforms.Jacob Gabrielsonhttps://www.blogger.com/profile/13887274100244616103noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-63759947223310807322007-12-23T20:38:00.000-08:002007-12-23T20:38:00.000-08:00I'd rather require/load everything I needed at sta...I'd rather require/load everything I needed at startup and use either dump-emacs to create a new emacs executable with all those packages built-in or use the cool multi-tty to connect to a emacs server that never gets closed. :)pluskidhttps://www.blogger.com/profile/17997317415745134928noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-81359690122445993142007-12-23T19:22:00.000-08:002007-12-23T19:22:00.000-08:00If one is almost never restarting emacs (and this ...If one is almost never restarting emacs (and this is what I try to do), wouldn't it be smarter to have your .emacs preload all kinds of stuff, rather than do lazy loading through autoload?Christopher Smithhttps://www.blogger.com/profile/13820642342200638732noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-89185893626487023742007-12-23T09:56:00.000-08:002007-12-23T09:56:00.000-08:00Thank you! I've run into problems using my .emacs ...Thank you! I've run into problems using my .emacs on multiple machines before, so the autoloading stuff is really helpful.asokoloskihttps://www.blogger.com/profile/10536265823422198802noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-90953139757478169182007-11-17T08:53:00.000-08:002007-11-17T08:53:00.000-08:00Thanks! After eval-after-load-ing everything I cou...Thanks! After eval-after-load-ing everything I could, I nearly halved my emacs startup time!<BR/><BR/>At some point I'll go back and move each library's config to its own file and just autoload all of those, but I have work to put off.haxneyhttps://www.blogger.com/profile/02301593085374030863noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-69346670706531476932007-11-11T11:03:00.000-08:002007-11-11T11:03:00.000-08:00not using using load or require makes sense for fe...not using using load or require makes sense for features that you won't always use or won't use immediately. however, for things like color-themes and other things that i want started when emacs starts, there is no way to avoid loading it, so it makes sense to use require.Matt Mhttps://www.blogger.com/profile/10205992977269109969noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-3377070993715755992007-11-08T07:51:00.000-08:002007-11-08T07:51:00.000-08:00@mou: corrected! Thanks...@mou: corrected! Thanks...Jacob Gabrielsonhttps://www.blogger.com/profile/13887274100244616103noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-47225179783806350702007-11-08T03:48:00.000-08:002007-11-08T03:48:00.000-08:00Minor typo in tip about timing your .emacs , it sh...Minor typo in tip about timing your .emacs , it should be *emacs-load-start* in final lineUnknownhttps://www.blogger.com/profile/17775460094559272878noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-2386052068164778492007-11-07T11:28:00.000-08:002007-11-07T11:28:00.000-08:00Well, LOADs and REQUIREs are often slow (and often...Well, LOADs and REQUIREs are often slow (and often accomplish nothing, since there are usually autoloads for "standard" functionality nowadays anyway) and also a source of errors. For example, I run Emacs on 5 different machines, and they don't all have the same libraries on them (I'm talking about the things that aren't part of the Emacs 22 distribution, of course). Using a combination of EVAL-AFTER-LOAD and AUTOLOAD instead of using LOAD means that unless I actually try to <B>use</B> features that aren't available on a particular machine, I won't get an error loading the library unless I actually try to use the feature.Jacob Gabrielsonhttps://www.blogger.com/profile/13887274100244616103noreply@blogger.comtag:blogger.com,1999:blog-32049549.post-74706195825990080832007-11-07T08:23:00.000-08:002007-11-07T08:23:00.000-08:00Why do you demand that I not "load" or "require" s...Why do you demand that I not "load" or "require" stuff in my .emacs? I've been doing exactly that -- and a lot of it -- for years, with no apparent ill effect.offby1https://www.blogger.com/profile/01257566357465364171noreply@blogger.com