2012-12-09 59 views
0

我已經在emacs中使用了一段時間的IDO,但它開始在/ usr/bin文件夾中打開,而不是在通常的主文件夾中打開。我如何改回它?Emacs告訴IDO從哪裏開始搜索

初始化文件的內容(是否有幫助):

(add-to-list 'load-path "~/.emacs.d/") 
(defun toggle-fullscreen() 
    (interactive) 
    (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 
     '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0)) 
    (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 
     '(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0)) 
) 
(toggle-fullscreen) 
(global-linum-mode 1) 
(ido-mode 1) 
(setq ido-enable-flex-matching t) 
(setq ido-everywhere t) 
(setq inhibit-startup-message t 
inhibit-startup-echo-area-message t) 
(require 'recentf) 
(recentf-mode 1) 
(setq recentf-max-menu-items 25) 
(global-set-key "\C-x\ \C-r" 'recentf-open-files) 

(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. 
) 
(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 "#000000" :foreground "#ffffff" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 110 :width normal :foundry "unknown" :family "Monospace")))) 
'(highlight ((((class color) (min-colors 88) (background dark)) (:background "#2f4f4f")))) 
'(hl-line ((t (:background "gray10"))))) 

(delete-selection-mode 1) 
(global-hl-line-mode 1) 
(setq make-backup-files nil) 
(setq auto-save-default nil) 
(global-visual-line-mode 1) 
(setq TeX-auto-save t) 
(setq TeX-parse-self t) 
(setq-default TeX-master nil) 
(load "tabbar") 
(tabbar-mode 1) 
(load "bar-cursor") 
(bar-cursor-mode 1) 
(setq deft-directory "~/Dropbox/") 
(setq deft-extension "org") (setq deft-text-mode 'org-mode) 
(global-set-key [f8] 'deft) 
(setq deft-use-filename-as-title t) 
(require 'screenwriter) 
(global-set-key (kbd "<f7>") 'screenwriter-mode) 
(setq auto-mode-alist (cons '("\\.scp" . screenwriter-mode) auto-mode-alist)) 
(setq auto-mode-alist (cons '("\\.screenplay" . screenwriter-mode) auto-mode-alist)) 
(load "prelude-packages") 

回答

1

使用M-x cd。它改變了default-directory,它是本地緩衝區(它可以爲每個緩衝區設置不同的值),並且默認爲緩衝區文件的目錄,用於有文件的緩衝區。我想你可以遍歷所有的緩衝區來爲它們設置default-directory,但是這聽起來像是倒退了一步。

+0

非常感謝! – user1889112

0

這似乎給我,打開一個新的文件(C-X)C-F時,它會與當前緩衝區的目錄開始。

由於改變了自定義,當然可能會發生一些默認設置。既然你沒有張貼從配置相關的任何東西我會建議做到以下幾點:

  1. 檢查你的.emacs/.emacs.d/init.el文件自定義到默認目錄位置
  2. 檢查定製。埃爾
  3. 使用的Mx定製組通過IDO定製

如果一切都走失敗也許你可以發佈你最近的一些配置的變化?

希望它能幫助,

+0

你能指點我custom.el?我無法在ido定製中找到它... – user1889112