2009-06-30 11 views
7

私はemacsに全く新しいので、効果的に使う方法を学び始めています。Emacs:psvn.elファイルを置く場所は?

私が使いたい最初のものはsvnモードです。

私はpsvn.elをダウンロードして、〜/ .emacs.dディレクトリpsvn.elファイルのコメント部分の命令に続くその後

に入れて、私はこの行を入れて

(require 'psvn) 
.emacsの中へ

これが私の現在の.emacs今すぐとき

(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. 
'(inhibit-startup-screen t)) 
(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. 
) 

(require 'psvn) 

ファイルである

ファイル私は間違った場所にpsvn.elを

An error has occurred while loading `/home/akong/.emacs': 

File error: "Cannot open load file", "psvn" 

To ensure normal operation, you should investigate the cause 
of the error in your initialization file and remove it. Start 
Emacs with the `--debug-init' option to view a complete error 
backtrace 

入れました:私は、私は、このエラーメッセージが表示されました、emacsのを開始しますか?私はcygwinの+ WinXPのを使用しています

あなたがしたいとしている

答えて

12

load-pathには、psvnというファイルがありません。あなたのシェルで

あなたのEmacsの初期化ファイル(多くの場合、 ~/.emacs)で
mkdir -p ~/.emacs.d    # Make the directory unless it exists 
mv /some/path/psvn.el ~/.emacs.d/ # Move psvn.el into that directory 

(add-to-list 'load-path "~/.emacs.d") ; Add this directory to Emacs' load path 
(require 'psvn)      ; Load psvn 

編集:私はちょうどあなたがWindows XPであることに気づきました。私はCygwinがこれをどのように処理するかはわかりませんが、手順はCygwinの外ではほとんど同じですが、Windows XPでは~%APPDATA%であるので、.emacs.d.emacsの両方がそのディレクトリになければなりません。

1

まず最初は、それがどこを見れを知っているので、あなたのロードパスに.emacs.dを追加することです。 ~/.emacs.d/site-lispで一般的にほとんどの人々ストア.elプラグインので、私はこれを行う:

;; >>> Configure Load Path <<< ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
(setq emacs-config-path "~/.emacs.d/") 
(setq base-lisp-path "~/.emacs.d/site-lisp/") 
(setq site-lisp-path (concat emacs-config-path "/site-lisp")) 
(defun add-path (p) 
    (add-to-list 'load-path (concat base-lisp-path p))) 

;; I should really just do this recursively. 
(add-path "") 
;; (add-path "some-nested-folder") 

(require 'psvn)は罰金を動作するはずです。

1

Windowsでホームディレクトリを見つけるのに問題があると思いますか?あなたのホームディレクトリがどこにあるかを見るためにCx d〜RETURN(あなたのホームディレクトリでdiredを実行する)を試してから、他の答えが何をしているかを試してみてください:psvn.elを.emacs.dに入れ、〜/ .emacs.dをload-経路

関連する問題