それで、私はemacsで動作するようにlintnodeをセットアップしようとしていますが、うまくインストールできるようです。起動時にバッファなどにエラーは発生しません。
ただし、いくつかの JS を作成しようとすると、機能がまったく得られません。そのため、npm をチェックして、すべてのノード パッケージが最新であるかどうかを確認しますが、そうではありませんが、「npm update」を実行して 200 の応答を取得した後でも、バージョンは変更されていません。少し背景情報を得るために Xubuntu を実行しています。
これが私のemacs initファイルのコピーで、それが問題であると思われるかどうかを確認してください。
これが面倒な場合は、ここに貼り付けビンがあります。Emacs 初期化
(add-to-list 'load-path "~/.emacs.d/auto-complete-1.3.1")
;Load the default configuration
(require 'auto-complete-config)
;Make sure we can find the dictionaries
(add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete-1.3.1/dict")
;Use dictionaries by default
(setq-default ac-sources (add-to-list 'ac-sources 'ac-source-dictionary))
(global-auto-complete-mode t)
;Start auto completion after two characters of a word
(setq ac-auto-start 2)
; case sensitivity is important when finding matches
(setq ac-ignore-case nil)
(add-hook 'js-mode-hook'
(lambda ()
;;Scan the file for nested code blocks
(imenu-add-menubar-index)
;;Activate folding mode
(hs-minor-mode t)
)
)
;;Yasnipped: Auto-codesnippet manager
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
;;Lintnode
(add-to-list 'load-path "~/.emacs.d/plugins/lintnode")
(require 'flymake-jslint)
(add-hook 'javascript-mode-hook
(lambda () (flymake-mode t)))
(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.
'(lintnode-autostart 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.
)
;;Flymake-the nice minibuffer cursor linked message
(add-to-list 'load-path "~/.emacs.d/plugins/flymake")
(require 'flymake-cursor)