2017-06-10 7 views
0

現在、emacsでclojure-mode-extra-font-lockingを有効にしようとしています。現在はemacsでclojure-mode-extra-font-lockingモードを有効にする際の問題

~/.emacs.d/bootleg/clojure-mode-extra-font-locking/clojure-mode-extra-font-locking.el

です。

I次のコードを持っている:

(require 'clojure-mode) 
(add-to-list 'load-path "~/.emacs.d/bootleg/clojure-mode-extra-font-locking/") 
(require 'clojure-mode-extra-font-locking) 

をしかし、私は.cljファイルを開いたとき、私はミニバッファでこれを取得する:私は間違って何をやっている

File mode specification error: (void-function enable)

?ありがとうございました!

編集: これは私が

M-x toggle-debug-on-error

Debugger entered--Lisp error: (void-function enable) 
    enable() 
    run-hooks(change-major-mode-after-body-hook prog-mode-hook clojure-mode-hook) 
    apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook clojure-mode-hook)) 
    run-mode-hooks(clojure-mode-hook) 
    clojure-mode() 
    set-auto-mode-0(clojure-mode nil) 
    set-auto-mode() 
    normal-mode(t) 
    after-find-file(nil t) 
    find-file-noselect-1(#<buffer test.clj> "~/src/clojure/test.clj" nil nil "~/src/clojure/test.clj" (16260320 2069)) 
    find-file-noselect("/home/n/src/clojure/test.clj" nil nil nil) 
    find-file("/home/n/src/clojure/test.clj") 
    #[257 "\304\305!!r\306\307\310\311\312\313!\314\"\315\316%DC\216\[email protected]\320\"\210 \205$\321\n!?\205)\322\323\n\"!+\207" [ivy-last counsel-find-file-speedup-remote ivy--directory find-file-hook internal--before-with-selected-window ivy--get-window funcall make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 "\n\n(fn)" select-window norecord file-remote-p find-file expand-file-name] 9 "\n\n(fn X)"]("/home/k/src/clojure/test.clj") 
    ivy-call() 
    ivy-read("Find file: " read-file-name-internal :matcher counsel--find-file-matcher :initial-input nil :action #[257 "\304\305!!r\306\307\310\311\312\313!\314\"\315\316%DC\216\[email protected]\320\"\210 \205$\321\n!?\205)\322\323\n\"!+\207" [ivy-last counsel-find-file-speedup-remote ivy--directory find-file-hook internal--before-with-selected-window ivy--get-window funcall make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 "\n\n(fn)" select-window norecord file-remote-p find-file expand-file-name] 9 "\n\n(fn X)"] :preselect nil :require-match confirm-after-completion :history file-name-history :keymap (keymap (C-backspace . counsel-up-directory) (67108991 . counsel-up-directory)) :caller counsel-find-file) 
    counsel-find-file() 
    call-interactively(counsel-find-file nil nil) 
    command-execute(counsel-find-file) 
+0

私はあなたのフック関数( 'change-major-mode-after-body-hook'、' prog-mode-hook'、または 'clojure-mode-hook')のいずれかにいると思います。それらのすべてをチェックし、フックの各機能が正しく機能していることを確認してください。 – jpkotta

答えて

0

で得るものですあなたは本当にこのパッケージが欲しい/必要か?

あなたの質問を見たとき、私の最初の反応は「 で気にしないでください。これは主に私が見た最後の時間で、パッケージはかなり今日の であったため、サイダーは拡張された フォントロックを提供する機能を追加していました。しかし、私はチェックして、追加のフォントロック パッケージが最近更新され、サイダーが素晴らしいのに対し、 はサイダーよりもむしろinf-clojureを使用する方が好きであることを覚えています(特に nReplを持っておらず、 を偽装するためのピギーバックミドルウェアのルートに行きたくない)。

まず、clojure-modeを取得するように設定を変更し、 MELPAアーカイブからclojure-mode-extra-font-lockを変更する必要があります。 clojure-modeとcider パッケージは高速移動ターゲットで、新しいパッケージはすべて 週ごとにリリースされています。これはすばらしいですが、余分なパッケージを フォントロックパッケージのように同期させるのが少し難しくなっています。パッケージ のアーカイブからそれらを取得すると、すべてが同期していることを確認するのに役立ちます。

新しい投稿があれば、私は本当に追加の フォントロックのことを心配していないでしょう。 clojure-mode、ciderと clj-refactorに集中するほうがずっと良いです。 IMOこれらは、より重要な部分であり、 が環境とワークフローを強化するものです。これらのパッケージがすべて でうまく動作していることが確認できたら、 余分なフォントロックを追加してください。あなたがそれを必要としない可能性が高いです。

elpa パッケージを管理するには、use-packageパッケージを使用することを強くお勧めします。これにより、initファイルの保守が容易になり、 のemacs起動時間を大幅に短縮することができます。

+0

cider-replでpareditまたはrainbow-delimitersを有効にしようとすると、同じエラーが発生します。 – nosefouratyou

+0

initを表示するか、どこかに置いてリンクを投稿してください。Pareditとrainbow-delimitersはclojure-modeとciderの両方の共通の設定であるため、動作することはわかっています。したがって、あなたのinitファイルの問題でなければなりません。 –

関連する問題