以下のようなコードを.emacsに書き込んでflymakeをpythonのシンタックスチェックに使っています。
この環境でjavaのコードを開くとエラーが出現して困っています。
Lisp
1(add-hook 'find-file-hook 'flymake-find-file-hook) 2(when (load "flymake" t) 3 (defun flymake-pyflakes-init () 4 (let* ((temp-file (flymake-init-create-temp-buffer-copy 5 'flymake-create-temp-inplace)) 6 (local-file (file-relative-name 7 temp-file 8 (file-name-directory buffer-file-name)))) 9 (list "~/anaconda3/bin/pyflakes" (list local-file)))) 10 (add-to-list 'flymake-allowed-file-name-masks 11 '("\.py\'" flymake-pyflakes-init))) 12; show message on mini-buffer 13(defun flymake-show-help () 14 (when (get-char-property (point) 'flymake-overlay) 15 (let ((help (get-char-property (point) 'help-echo))) 16 (if help (message "%s" help))))) 17(add-hook 'post-command-hook 'flymake-show-help)
javaのコードを開いたときに出現するコードは次の通りです。
Flymake: No buildfile (Makefile) found for test.java. Flymake will be switched OFF > OK
Emacsのバージョンは次の通りです。
Emacsのバージョンのアップは難しいです。
GNU Emacs 24.4.1 Copyright (C) 2014 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.
解決方法の分かる方ご教示ください。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/23 15:08