我已經在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")
非常感謝! – user1889112