Hello, I have recently upgraded to the new generation of Macbook Pro and am experiencing some problems opening command line emacs. I have tried, and experienced this problem with Emacs 22 (installed with Lion), Emacs 23 (downloaded and compiled from source), and emacs 24 (downloaded and installed from homebrew). This problem seems to happen sporadically but once it starts it persists. The issue is that files can sometimes take around 5 seconds to load. These are files from .java files, to .txt files, to my .emacs file. I have tried things like commented all the lines in my .emacs file out, trying different version of emacs, rebooting and running only emacs in the terminal and have experienced the same problem with all of these options. Right now my .emacs file looks like. This is very similar to the .emacs file I was using on emacs 23 in Snow Leopard with no problems:
And produces results such as:
If there are any emacs users out there who might have any idea about this I would be most appreciative.
Code:
;;hooks for syntax highlighting
;;(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 'text-mode-hook 'flyspell-mode t
Code:
13:39@legolas:~$ time emacs .emacs -f "save-buffers-kill-terminal"
real 0m4.403s
user 0m0.041s
sys 0m0.012s
If there are any emacs users out there who might have any idea about this I would be most appreciative.