all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Schmidt <christopher@ch.ristopher.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 24.0.94.1 slow to load on OS X
Date: Sat, 03 Mar 2012 19:31:07 +0100	[thread overview]
Message-ID: <20120303183109.C88D71FDB6@saturn.ch.ristopher.com> (raw)
In-Reply-To: <33435127.post@talk.nabble.com> (jreeseue@gmail.com's message of "Sat, 3 Mar 2012 09:36:12 -0800 (PST)")

jreeseue <jreeseue@gmail.com> writes:

> Hello, I am running OS X 10.7.3 with Emacs 24.0.94.1 and am experiencing a
> fairly long time for emacs to load. My .emacs file looks like
>
> (push "/usr/local/Cellar/emacs/HEAD/share/emacs/24.0.94/lisp" load-path)
>
>
> (add-hook 'c-mode-hook 'turn-on-font-lock)
> (show-paren-mode)
> (setq make-backup-files nil) ;; do not make backup files
> ;;keyboard navigation
> (define-key global-map (kbd "RET") 'newline-and-indent)
> (global-set-key "\C-n"(lambda () (interactive) (next-line 5)))
> (global-set-key "\C-p" (lambda () (interactive) (next-line -5)))
> (global-set-key "\C-u" (lambda () (interactive) (next-line -1)))
> (global-set-key "\C-o" (lambda () (interactive) (next-line 1)))
>
> (setq auto-mode-alist (cons '("\\.tex$" . latex-mode) auto-mode-alist))
>
> (setq tex-mode-hook
>       '(lambda ()(auto-fill-mode 1)))
>
> (defun count-words-region (start end)
>   (interactive "r")
>   (save-excursion
>     (let ((n 0))
>       (goto-char start)
>       (while (< (point) end)
>   (if (forward-word 1)
>       (setq n (1+ n))))
>       (message "Region has %d words" n)
>       n)))
>
> ; hooks for text & latex modes
> (add-hook 'text-mode-hook 'turn-on-auto-fill)
> (add-hook (and 'tex-mode-hook 'text-mode-hook) 'flyspell-mode t

I cannot reproduce your problem with GNU Emacs 24.0.94.1
(x86_64-unknown-linux-gnu, GTK+ Version 2.24.9) of 2012-03-01.

~$ time emacs -q -nw -f "save-buffers-kill-terminal"

real	0m0.053s
user	0m0.032s
sys	0m0.020s

~$ time emacs -q -nw -l /tmp/jreeseue.el -f "save-buffers-kill-terminal"

real	0m0.058s
user	0m0.040s
sys	0m0.016s

BTW. add-hook is a regular function and (and 'tex-mode-hook 'text-mode-hook) evaluates to 'text-mode-hook!

        Christopher



  reply	other threads:[~2012-03-03 18:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 17:36 Emacs 24.0.94.1 slow to load on OS X jreeseue
2012-03-03 18:31 ` Christopher Schmidt [this message]
2012-03-03 19:41   ` jreeseue
2012-03-03 19:33 ` Peter Dyballa
2012-03-03 19:42 ` Peter Dyballa
2012-03-03 19:46   ` jreeseue
2012-03-03 21:18     ` Peter Dyballa
2012-03-03 21:27       ` jreeseue
2012-03-03 21:52         ` Peter Dyballa
2012-03-03 22:19           ` jreeseue
2012-03-03 23:29             ` Peter Dyballa
2012-03-04 15:42               ` jreeseue
2012-03-05 16:08                 ` jreeseue
2012-03-05 18:54                   ` Peter Dyballa
2012-03-05 21:04                     ` jreeseue
2012-03-05 21:48                       ` Peter Dyballa
2012-03-05 22:03                         ` jreeseue

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=20120303183109.C88D71FDB6@saturn.ch.ristopher.com \
    --to=christopher@ch.ristopher.com \
    --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.
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.