From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: optional packages on startup? Date: Fri, 05 Aug 2011 11:10:59 +0300 Message-ID: References: <81y5zl5ybh.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1312531872 23997 80.91.229.12 (5 Aug 2011 08:11:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2011 08:11:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 05 10:11:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QpFUq-0005hN-HA for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Aug 2011 10:11:08 +0200 Original-Received: from localhost ([::1]:37211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpFUq-0006yV-1N for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Aug 2011 04:11:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpFUj-0006jb-CF for help-gnu-emacs@gnu.org; Fri, 05 Aug 2011 04:11:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpFUi-0002kQ-J6 for help-gnu-emacs@gnu.org; Fri, 05 Aug 2011 04:11:01 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpFUi-0002kG-8x for help-gnu-emacs@gnu.org; Fri, 05 Aug 2011 04:11:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QpFUh-0005bb-Ds for help-gnu-emacs@gnu.org; Fri, 05 Aug 2011 10:10:59 +0200 Original-Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Aug 2011 10:10:59 +0200 Original-Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Aug 2011 10:10:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91.193.68.214 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <81y5zl5ybh.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Spam-Report: 5.4 points; * -0.0 SPF_PASS SPF: sender matches SPF record * 4.0 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 4.0 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL * [91.193.68.214 listed in zen.spamhaus.org] Xref: news.gmane.org gmane.emacs.help:81889 Archived-At: 26.07.2011 9:51, Jambunathan K пишет: > >> Hi, >> In emacs, I have a lot of things that load up (cscopes, cedet, >> ecb). Since I have to ssh into a proxy, and then into the main >> server, there's a bit of latency for emacs to start up. > > Never do a (require 'package) - either for uncompiled or compiled > packages. > I use '(desktop-save-mode 1)', so even I do not put 'require' it is too long wait when Emacs loading as I have many files opened with several different file types (for all of them loaded appropriated major mode)... Some times I use code like this: (eval-after-load 'grep '(progn (add-to-list 'grep-find-ignored-directories "build" t) (add-to-list 'grep-find-ignored-directories "dist" t) (add-to-list 'grep-find-ignored-directories "lib" t) (when (boundp 'grep-find-ignored-files) (add-to-list 'grep-find-ignored-files "*TAGS") (add-to-list 'grep-find-ignored-files "GPATH") ) )) to prevent from loading grep.el at sturtup.