Emacs: can't open load file for windows.el, possible char encoding error -


i trying install windows mode here: http://www.emacswiki.org/emacs/windowsmode , having issues loading windows.el file upon initialization, minibuffer tells me cannot open load file: windows. after saving file, added init file:

(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) 

and here saved file:

[lucas@lucas-thinkpad-w520]~/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 

i suspect character encoding, listed @ top of windows.el file (full file on link) -*- coding: euc-jp -*-. saving file gave me error (see below), prompting me specify encoding. tried saving file euc-jp again utf-8, still cannot open load file... error.

here message when trying save:

these default coding systems tried encode text in 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 couldn't encode:   japanese-iso-8bit-unix cannot encode these: � � � � � � � � � � ...  click on character (or switch window `c-x o' , select characters ret) jump place appears, `c-u c-x =' give information it.  select 1 of safe coding systems listed below, or cancel writing c-g , edit buffer    remove or modify problematic characters, or specify other coding system (and risk losing    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 

assuming encoding source of problem, how can setup emacs compatible these encodings?

load-path list of directories in elisp libraries.

use this:

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

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -