2010-01-15 2 views
6

직접 빠르게 파일을 열고,하지만 난 내 .emacs.에 다음 행을 추가 활성화되는 최근의 파일을 열 때 :Emacs가 최근 파일을 여는 속도가 느립니다!

(require 'recentf) 
(recentf-mode 1) 
(setq recentf-max-menu-items 25) 
(global-set-key "\C-x\ \C-r" 'recentf-open-files) 

이 열려 약 2 초 정도 걸립니다.

정상적인 행동입니까?

내가 최근 파일을 여는 데 사용하는 명령

내 전체 이맥스 :

(custom-set-variables 
    ;; custom-set-variables was added by Custom. 
    ;; If you edit it by hand, you could mess it up, so be careful. 
    ;; Your init file should contain only one such instance. 
    ;; If there is more than one, they won't work right. 
'(tool-bar-mode nil)) 
(custom-set-faces 
    ;; custom-set-faces was added by Custom. 
    ;; If you edit it by hand, you could mess it up, so be careful. 
    ;; Your init file should contain only one such instance. 
    ;; If there is more than one, they won't work right. 
'(default ((t (:inherit nil :stipple nil :background "Grey15" :foreground "Grey" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 92 :width normal :foundry "outline" :family "Monaco"))))) 

    ;;colot theme plugin 
(add-to-list 'load-path "~/.emacs.d/") 
(require 'color-theme) 
(eval-after-load "color-theme" 
    '(progn 
    (color-theme-initialize) 
    (color-theme-charcoal-black))) 

    ;;YASnippets 
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet-0.6.1c") 
    (require 'yasnippet) ;; not yasnippet-bundle 
    (yas/initialize) 
    (yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets") 

;; disable splash screen and startup message 
(setq inhibit-startup-message t) 

;; set yasnippet no indent 
(setq yas/indent-line 'none) 

;; set the tab width 
(setq default-tab-width 4) 
(setq tab-width 4) 
(setq c-basic-indent 4) 

;; set open recent files 

(require 'recentf) 
(recentf-mode 1) 
(setq recentf-max-menu-items 25) 
(global-set-key "\C-x\ \C-r" 'recentf-open-files) 

;; set line number 
(global-linum-mode 1) 

;; prevent emacs from making backup files 
(setq make-backup-files nil) 

;; same syntax hightlight for all languages 
(global-font-lock-mode 1) 

;; remove bold and underline 
(mapc 
    (lambda (face) 
    (set-face-attribute face nil :weight 'normal :underline nil)) 
    (face-list)) 
+0

Windows XP SP2를 사용합니다. – alexchenco

+0

어떤 버전의 이맥스입니까? 23.1이 Windows에서 속도가 그렇게 빠르지 않다는 것을 알았습니다. – luapyad

+0

예, 저는 Emacs 23.1을 사용하고 있습니다. – alexchenco

답변

9

원격 호스트가있을 때 최근 파일과 원격 파일에 문제가있었습니다. 갔어.

(setq recentf-keep '(file-remote-p file-readable-p)) 

문제가 해결 될 수 있습니다 (원격 파일은 아직 테스트하지 않고 보관됩니다).

+0

감사하지만 작동하지 않았다 – alexchenco

+0

그것은 나를 위해 완벽하게 작동합니다. –

2

이 그렇게 오래 걸릴 야해.

최근해야 할 일은 최근 파일 목록을 정리하는 것입니다.

ALT + X recentf-정리 한 후 이맥스는 것을 볼 수

당신도 그냥 문자 또는 두 가지를 변경 한 경우, 귀하의 이맥스 파일을 새로 컴파일되어 있는지 확인한다 할 또 다른 것은 .emacs 파일은 컴파일 된 버전보다 최신 버전이며 컴파일 된 버전은 사용하지 않습니다.

실행이 :

ALT + X 바이트 컴파일 파일

이 그런 다음 이맥스 파일로 이동하고 Enter 키를 누르십시오, 그것은

.emacs.elc라는 이름의 파일을 생성합니다

이맥스는 .emacs 파일보다 오래되지 않은 한 .emacs.elc를 사용합니다.

+0

고맙지 만 작동하지 않는다. 내 .emacs 파일이 너무 작아 컴파일 된 효과를 볼 수 없다고 생각합니다. 그것은 단지 3kb에서 2kb로갔습니다. – alexchenco

관련 문제