Wednesday, 11 February 2015

Emacs slow to open files on Lion


hello, have upgraded new generation of macbook pro , experiencing problems opening command line emacs. have tried, , experienced problem emacs 22 (installed lion), emacs 23 (downloaded , compiled source), , emacs 24 (downloaded , installed homebrew). problem seems happen sporadically once starts persists. issue files can take around 5 seconds load. these files .java files, .txt files, .emacs file. have tried things commented lines in .emacs file out, trying different version of emacs, rebooting , running emacs in terminal , have experienced same problem of these options. right .emacs file looks like. similar .emacs file using on emacs 23 in snow leopard no problems:
code:
  ;;hooks syntax highlighting                                                    ;;(add-hook 'c-mode-hook 'turn-on-font-lock)                                         (show-paren-mode)  (setq make-backup-files nil) ;; 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 text & latex modes                                                    (add-hook 'text-mode-hook 'turn-on-auto-fill)  (add-hook 'text-mode-hook 'flyspell-mode t  
and produces results such as:
code:
  13:39@legolas:~$ time emacs .emacs -f "save-buffers-kill-terminal"    real	0m4.403s  user	0m0.041s  sys	0m0.012s  
if there emacs users out there might have idea appreciative.
 



Forums Macs Notebooks MacBook Pro


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment