문제

나는 EMAC에서 파일 이름 완료로 이상한 행동에 직면하고 있습니다. CX CF 파일을 찾는 CX CF는 i :/cygwin/home/rrajagop/stockscreener/working_copy/master_repo/stock_screener/로 미니 버퍼를 엽니 다. 탭을 누르면 i :/cygwini :/cygwin/home/rrajagop/stockscreener/working_copy/master_repo/stock_screener/가됩니다. 내가 알아 차린 몇 가지 흥미로운 것들 :

  1. 미니 버퍼가 열리면, i : /cygwin이 회색으로 나오고 길은 /집에서 시작하는 것처럼 보입니다. CA (라인 시작)는 I : /Cygwin이 아닌 /집으로 데려갑니다. 따라서 EMACS의 무언가가 i : /cygwin이 아닌 /집에서 시작하는 길을 구문 분석하는 것처럼 보입니다.
  2. 탭은 Minibuffer.el (탭에 대한 설명 키를 사용하여)에서 미니 버퍼로 완성되는지 확인 했으므로 미니 버퍼가 완성 된 것이 Cygwin을 위해 약간의 번역을하고 추가 i :/cygwin을 추가하는 것처럼 보입니다.

이것을 알아 내거나 고치는 방법은 무엇입니까?

편집 : 추가 정보 -Q로 EMAC를 열었습니다.이 문제는 발생하지 않습니다. 그래서 이것은 제가 .Emacs에로드하는 것입니다. 이것이 제가 .Emacs에있는 것입니다

(require 'cl)

; Needed to see how fast Emacs loads. Loading time is printed at the 
; and of the execution of .emacs file.
(defvar *emacs-load-start* (current-time))

; I really like this font. I also tried Monaco which you can
; see on lot of Railscasts but I couldn't find the one which
; supports Serbian Cyrillic and Latin letters.
(set-default-font "-outline-Courier New-normal-r-normal-normal-19-142-96-96-c-*-iso8859-1")

;; Don't show that splash screen
(setq inhibit-startup-message t)

; This should allegedly speed up Emacs starting by preventing
; some requests from the window manager back to the Emacs. Frankly
; speaking I didn't notice some speed up but I still keep it:(
(modify-frame-parameters nil '((wait-for-wm . nil)))

;Allows syntax highlighting to work, among other things
(global-font-lock-mode 1)

; Sets initial window position
(set-frame-position (selected-frame) 0 0)

; Sets initial window size to 85 columns and 47 rows
(set-frame-size (selected-frame) 88 32)

; Makes last line ends in carriage return
(setq requre-final-newline t)

; Sets Ctrl-x / key combination for easy commenting
; out of selected lines.
(global-set-key "\C-x/" 'comment-or-uncomment-region)

; Allow resizing of the mini-buffer when necessary
(setq resize-minibuffer-mode t)

; Auto magically read compressed files
(auto-compression-mode 1)

; Set standard indent to 2 rather then 4
(setq standard-indent 2)

; This tells Emacs to create backup files.
(setq make-backup-files t)

; And this will enable versioning with default values.
(setq version-control t)

; Remove annoying message about deleting excess backup of .recentf
; which is list of recent files used 
(setq delete-old-versions t)

; Finally do not spread backups all over the disk.
; Just save all backup files in this directory.
(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))

;; Directory to put various el files.
(add-to-list 'load-path "~/.emacs.d/includes")

(require 'ascii-table)

;; Loading collection of generic modes for different languages
(require 'generic-x)

;; Recent files
(require 'recentf)
(recentf-mode 1)

;; Loads ruby mode when a ruby file is opened.
(autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby scripts." t)
(setq auto-mode-alist (cons '(".rb$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist (cons '(".rhtml$" . html-mode) auto-mode-alist))
(setq auto-mode-alist (cons '(".html.erb$" . html-mode) auto-mode-alist))

;; Turn on ruby electric (auto completion of parenthesis, etc.)
(add-hook 'ruby-mode-hook
      (lambda()
        (add-hook 'local-write-file-hooks
              '(lambda()
             (save-excursion
               (untabify (point-min) (point-max))
               (delete-trailing-whitespace) )))
        (set (make-local-variable 'indent-tabs-mode) 'nil)
        (set (make-local-variable 'tab-width) 2)
        (imenu-add-to-menubar "IMENU")
        (define-key ruby-mode-map "\C-m" 'newline-and-indent)
        (require 'ruby-electric)
        (ruby-electric-mode t) ))

;; Ruby debugging.
(add-to-list 'load-path "~/.emacs.d/plugins/rdebug")
(autoload 'rdebug "rdebug" "Ruby debugging support." t)
(global-set-key [f9] 'gud-step)
(global-set-key [f10] 'gud-next)
(global-set-key [f11] 'gud-cont)
(global-set-key "\C-c\C-d" 'rdebug)


;; set compile command based on current major mode
(autoload 'mode-compile "mode-compile"
"Command to compile current buffer file based on the major mode" t)
(global-set-key "\C-cc" 'mode-compile)
(autoload 'mode-compile-kill "mode-compile"
"Command to kill a compilation launched by `mode-compile'" t)
(global-set-key "\C-ck" 'mode-compile-kill)

;; yasnippet - adding code snippet insertion
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet/snippets")

;; Use CYGWIN bash
(require 'setup-cygwin)

;; Subversion integration via psvn - not gonna use svn anymore
;; (require 'psvn)


;; add some elisp tutorials to the info directory
(let ((info-root (concat usb-drive-letter "cygwin/usr/local/bin/emacs/info/")))
  (setq Info-directory-list (list info-root 
                  (concat info-root "elisp-tutorial-2.04/") 
                  (concat info-root "emacs-lisp-intro-2.14")) ) 
)

;; Load time for .emacs - this should be the last line in .emacs for accurate load time
(message "ido and org-install took: %ds" 
     (destructuring-bind (hi lo ms) (current-time)
       (- (+ hi lo) (+ (first *emacs-load-start*) (second *emacs-load-start*)) )))
도움이 되었습니까?

해결책

제 생각에는 패키지로드 트램프를 찾는 것에 대한 이전 질문에 대한 나의 대답 여기서 당신을 도울 것입니다.

다른 팁

변수를 변경하여 트램프를 제어 할 수 있습니다 tramp-mode.

참고 사항, 당신은 아마도 사용하는 것이 유용하다고 생각할 것입니다. customize EMAC를 사용자 정의합니다. 나는했다 customize-apropos ~와 함께 tramp 그리고 그것은 트램프 그룹을 찾았습니다. 거기를 클릭하면 트램을 끄는 등 트램프를 구성하는 모든 방법이 나타났습니다.

파일 이름 -Shadow 모드가 C : 파일 이름으로 GRAYS ..... 그래서 Cygwin-Mount-Substitute-Long-Mame 이름이 실행될 때 C : Adds Adds는 보이지 않습니다.

MX Find-File

c:/home/
> a
c:/home/a            ; but the c: is greyed
> TAB   
c:c:/home/anything  
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top