[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 24.0.94.1 slow to load on OS X
From: |
jreeseue |
Subject: |
Re: Emacs 24.0.94.1 slow to load on OS X |
Date: |
Sat, 3 Mar 2012 11:41:25 -0800 (PST) |
Thanks for the reply. Yes that line in the configuration file didn't make
sense. I've changed it to:
(add-hook 'text-mode-hook 'flyspell-mode t)
I did a test similar to yours to demonstrate the issue:
19:37@legolas:Variable.java -f "save-buffers-kill-terminal"
real 0m4.518s
user 0m0.138s
sys 0m0.028s
Christopher Schmidt-6 wrote:
>
> 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
>
>
>
--
View this message in context:
http://old.nabble.com/Emacs-24.0.94.1-slow-to-load-on-OS-X-tp33435127p33435621.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
- Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, Christopher Schmidt, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X,
jreeseue <=
- Re: Emacs 24.0.94.1 slow to load on OS X, Peter Dyballa, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, Peter Dyballa, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, Peter Dyballa, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, Peter Dyballa, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, Peter Dyballa, 2012/03/03
- Re: Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/04
- Re: Emacs 24.0.94.1 slow to load on OS X, jreeseue, 2012/03/05