1

OS X Lion ( http://emacsformacosx.com/から取得) で GNU Emacs バージョン 24.3 (9.0) を実行しています。私は比較的 emacs に慣れていないので、自分の問題に対する簡単な修正方法を知らないかもしれません。

最近、helm-mode の使用を拡張して helm-locate を含め、helm に拡張コマンドの提案を提供させました。残念ながら、これらをどのようにアクティブ化したか正確には覚えていませんが、私の .emacs ファイルには Cx Cf を helm-find にバインドする以外に helm-mode に関する情報が何もないため、Customize Group インターフェースからのものだったに違いないと思います。 -ファイル。これらの機能を使い始めて以来、emacs を開くと次のエラーが表示されます。

Warning (initialization): An error occurred while loading `/Users/aporiac/.emacs':

File error: Cannot open load file, helm-match-plugin

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

--debut-init フラグを指定してコマンド ラインから emacs を起動すると、次のようになります。

Debugger entered--Lisp error: (file-error "Cannot open load file" "helm-match-plugin")
require(helm-match-plugin)
mapc(require (helm-match-plugin))
custom-theme-set-variables(user (Linum-format "%7i ") (ansi-color-names-vector ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#ad7fa8" "#8cc4ff" "#eeeeec"]) (ansi-term-color$
  apply(custom-theme-set-variables user ((Linum-format "%7i ") (ansi-color-names-vector ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#ad7fa8" "#8cc4ff" "#eeeeec"]) (ansi-ter$
  custom-set-variables((Linum-format "%7i ") (ansi-color-names-vector ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#ad7fa8" "#8cc4ff" "#eeeeec"]) (ansi-term-color-vector [un$
  eval-buffer(#<buffer  *load*> nil "/Users/aporiac/.emacs" nil t)  ; Reading at buffer position 5073
  load-with-code-conversion("/Users/aporiac/.emacs" "/Users/aporiac/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@   \320=\203=^@\321\202A^@\307^$
  command-line()
  normal-top-level()

Customize Group から helm-match-plugin を非アクティブ化できず、これが問題なのかさえわかりません。どんな助けでも大歓迎です。

4

1 に答える 1

2

philsの役立つアドバイスと情報の助けを借りて、この問題は helm-mode や helm-match-plugin に固有のものではなく、私の粗末な .emacs ファイルが原因であることがわかりました。helm を使用して削除package-list-packagesし、.emcas ファイルで helm に関連するすべての関数をコメントアウトすることで、これを特定できました。emacsを再起動すると、さらに別のエラーが報告され、対応する関数をコメントアウトして、その後の再起動で別のエラーに直面しました。最後に、.emacs ファイルをコピーしてクリアし、少しずつつなぎ合わせて、重要な変更ごとに emacs を再起動しました。主な問題は多数の存在だったようです(require 'modename-mode)機能。インストールした多くのパッケージの指示に従ってこれらの関数を .emacs に追加しましたが、これらのパッケージを melpa または marmalade からインストールしました。このようにインストールされている場合は、パッケージを要求する必要はないと思います。

私はすべての機能を削除しました(require 'modename-mode)((require 'package) を除いて、何らかの理由で問題が発生していないようです) と、.emacs を散らかしている他のいくつかのチャフを削除してから、helm を再インストールしました。物事は順調に戻ったようです。

アップデート:

昨年、私はSpacemacsのすばらしいレイヤーシステムを通じてパッケージを管理してきました。それ以来、パッケージや初期化に関連する問題はほとんど発生していません。

于 2013-10-02T07:45:35.167 に答える