我使用的是ftp方式,乱码主要是因为everything的ftp是用的utf-8,以解决,我的配置:
(when (string-equal system-type "windows-nt")
(setq everything-use-ftp t)
(defun everything-ffap-guesser-wrapper (file)
(require 'everything)
(everything-ffap-guesser file) )
(eval-after-load "ffap" '(setf (cdr (last ffap-alist)) '(("\\.*\\'" . everything-ffap-guesser-wrapper)))) ; when C-x f can't find anything, try everything
(autoload 'everything "everything" nil t)
;; 这样就解决乱码问题了
(eval-after-load "everything" '(add-to-list 'network-coding-system-alist '(21 . (utf-8 . utf-8)) )); 默认21端口 (global-set-key (kbd "C-c C-f") 'everything))
(when (string-equal system-type "windows-nt")
(setq everything-use-ftp t)
(defun everything-ffap-guesser-wrapper (file)
(require 'everything)
(everything-ffap-guesser file) )
(eval-after-load "ffap" '(setf (cdr (last ffap-alist)) '(("\\.*\\'" . everything-ffap-guesser-wrapper)))) ; when C-x f can't find anything, try everything
(autoload 'everything "everything" nil t)
;; 这样就解决乱码问题了
(eval-after-load "everything" '(add-to-list 'network-coding-system-alist '(21 . (utf-8 . utf-8)) )); 默认21端口 (global-set-key (kbd "C-c C-f") 'everything))