2014-04-20 35 views
0

開路負載文件我想從這裏安裝Windows Modehttp://www.emacswiki.org/emacs/WindowsMode和我有在初始化加載windows.el文件,其中迷你緩衝區告訴我Cannot open load file: windows問題。保存文件後,我已將此添加到我的初始化文件:Emacs的:不能windows.el,可能字符編碼錯誤

(add-to-list 'load-path "~/workspace/emacs/.emacs.d/elisp/windows.el") 
(require 'windows) 
(win:startup-with-window) 
(define-key ctl-x-map "C" 'see-you-again) 

這裏是我保存的文件:

[[email protected]]~/workspace/emacs/.emacs.d/elisp$ ls -la 
total 296 
drwxr-xr-x 4 lucas lucas 4096 Apr 20 01:06 . 
drwxr-xr-x 14 lucas lucas 4096 Apr 20 01:14 .. 
-rw-r--r-- 1 lucas lucas 31502 Mar 29 21:40 multi-term.el 
-rw-r--r-- 1 lucas lucas 35201 Apr 20 01:01 revive.el 
drwxr-xr-x 3 lucas lucas 4096 Mar 9 14:57 theme-changer 
drwxr-xr-x 3 lucas lucas 4096 Mar 29 01:05 themes 
-rw-r--r-- 1 lucas lucas 115222 Apr 20 01:06 windows2.el 
-rw-r--r-- 1 lucas lucas 96830 Apr 20 01:01 windows.el 

我懷疑的字符編碼,這是在的頂部列出windows.el文件(鏈接上的完整文件)爲-*- coding: euc-jp -*-。最初保存這個文件給了我一個錯誤(見下文),提示我指定編碼。我試着將文件保存爲euc-jp,然後再次保存爲utf-8,但仍然收到Cannot open load file...錯誤。

這裏是想救時,我得到的消息:

These default coding systems were tried to encode text 
in the buffer `windows2.el': 
    (japanese-iso-8bit-unix (13580 . 65533) (13581 . 65533) (13582 
    . 65533) (13583 . 65533) (13584 . 65533) (13585 . 65533) (13586 
    . 65533) (13587 . 65533) (13588 . 65533) (13589 . 65533) (13590 
    . 65533)) 
However, each of them encountered characters it couldn't encode: 
    japanese-iso-8bit-unix cannot encode these: � � � � � � � � � � ... 

Click on a character (or switch to this window by `C-x o' 
and select the characters by RET) to jump to the place it appears, 
where `C-u C-x =' will give information about it. 

Select one of the safe coding systems listed below, 
or cancel the writing with C-g and edit the buffer 
    to remove or modify the problematic characters, 
or specify any other coding system (and risk losing 
    the problematic characters). 

    utf-8 gb18030 utf-7 utf-16 utf-16be-with-signature 
    utf-16le-with-signature utf-16be utf-16le iso-2022-7bit utf-8-auto 
    utf-8-with-signature utf-7-imap utf-8-emacs 

假設編碼是問題的根源,如何設置我的emacs是與這些編碼兼容?

+1

作爲替代方案,可以考慮使用Emacs 24.4(或者一個開發快照,直到被即將發佈)。您可以使用Emacs桌面來保存和恢復幀和窗口配置。你也可以在沒有臺式機的情況下做同樣的事情 – Drew

回答

1

load-path是在其中尋找elisp庫的目錄的列表。

使用此:

(add-to-list 'load-path (expand-file-name "~/workspace/emacs/.emacs.d/elisp")) 
相關問題