unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Fast emacs?
Date: Mon, 18 May 2009 04:13:27 +0300	[thread overview]
Message-ID: <87vdnzusaw.fsf@kobe.laptop> (raw)
In-Reply-To: 87ws8fflyl.wl%anselm.helbig+news2009@googlemail.com

On Sun, 17 May 2009 23:39:30 +0200, Anselm Helbig <anselm.helbig+news2009@googlemail.com> wrote:
>> Note that using the emacsclient is no solution, because this requires
>> that a version of Emacs be already running, which often defeats
>> the purpose (not only do I have to wait another eternity for this
>> new Emacs session to start, but then I have to start the server in
>> the new session).
>>
>> Any words of wisdom would be much appreciated!

> - don't use `require', use autoloads:
>   http://www.emacswiki.org/emacs/AutoLoad

> - for stuff that can only be configured once a library is loaded, use
>   `eval-after-load'.

> - make a new emacs image with all your favourite libraries already
>   loaded: http://www.emacswiki.org/emacs/DumpingEmacs

> - start emacs as part of system startup with the --daemon switch:
>   http://www.emacswiki.org/emacs/EmacsAsDaemon

> - byte-compile the libraries you use; consider byte-compiling your
>   .emacs if it is huge

> - remove extensions you don't use

> - measure the progress you make: use the lisp function benchmark-run,
>   or `time' on the command line. Try adding (kill-emacs) at the end
>   of your .emacs file to get meaningful results for this.

All good points :)

I use all of (1) autoloading, (2) --daemon mode for most of my quick
editing sessions, (3) I keep trimming my configuration from stuff I have
not used for months, and (4) fire up 1-2 different instances besides the
background daemon process: one for Gnus-only stuff, and maybe another
one for IRC windows.

Another neat thing to do is install a light-weight clone like `mg' and
use that for very basic editing.  I even went so far as to import mg in
my own copy of the FreeBSD src/ tree and attach it to the normal build
process, so my laptop's custom FreeBSD version now includes:

    $ which mg
    /usr/bin/mg

This way even when my full Emacs installation is not available (i.e. in
single user mode) I can use a lean and fast editor with very familiar
key bindings.

There are packages for `mg' and other mini clones of Emacs in the
package collection of most UNIX-like systems today, so installing one of
them is another thing that may be useful to consider.



  reply	other threads:[~2009-05-18  1:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17 21:05 Fast emacs? kj
2009-05-17 21:39 ` Anselm Helbig
2009-05-18  1:13   ` Giorgos Keramidas [this message]
2009-05-18 11:03   ` Bernardo
2009-05-18 11:29     ` ken
2009-05-17 22:12 ` Michael Ekstrand
2009-05-18  0:16 ` Jason Rumney
2009-05-18  2:51   ` kj
2009-05-18  3:38     ` B. T. Raven
2009-05-18 18:05     ` Drew Adams
2009-05-21 10:04 ` Christian Herenz
2009-08-02 15:28 ` David Kastrup
2009-08-02 20:34   ` Richard Riley
2009-10-13  8:50   ` Cecil Westerhof
2009-10-13 13:17     ` Teemu Likonen
2009-10-16 10:28       ` Cecil Westerhof
  -- strict thread matches above, loose matches on Subject: below --
2009-05-18  5:43 Dirk-Jan C. Binnema
     [not found] <mailman.7364.1242625447.31690.help-gnu-emacs@gnu.org>
2009-05-18  8:15 ` Tim X
2009-05-20 10:04 ` Jean Magnan de Bornier
2009-05-20 13:24   ` Jean Magnan de Bornier
2009-05-20 16:54     ` thierry.volpiatto
     [not found]     ` <mailman.7547.1242838889.31690.help-gnu-emacs@gnu.org>
2009-05-21  6:20       ` Jean Magnan de Bornier
2009-05-21  9:49         ` Pascal J. Bourguignon
2009-05-21 15:08         ` thierry.volpiatto
2009-05-21 10:13     ` Hugo Heden
2009-05-21 10:29       ` Lennart Borgman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87vdnzusaw.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).