flymake

Running pyflakes remotely with flymake and tramp in emacs?

冷暖自知 提交于 2019-12-03 08:49:22
问题 I'm trying to use flymake to run pyflakes, as suggested here This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although nothing actually seems to change), which renders it a bit useless in practice (e.g. saving a file runs flymake which immediately modifies the buffer again). Here's what I did to almost get it working: Installed pyflakes on the remote box.

How to disable Emacs-Flymake for html mode

微笑、不失礼 提交于 2019-12-02 23:46:28
Here is my flymake setup in .emacs file: (when (load "flymake" t) (defun flymake-pyflakes-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) (list "pyflakes" (list local-file)))) (add-to-list 'flymake-allowed-file-name-masks '("\\.py\\'" flymake-pyflakes-init))) (add-hook 'find-file-hook 'flymake-find-file-hook) (load-library "flymake-cursor") I want to use flymake only for .py files. and disable it for the rest. but It is always enabled. For example when I open an

Running pyflakes remotely with flymake and tramp in emacs?

不羁的心 提交于 2019-12-02 22:44:33
I'm trying to use flymake to run pyflakes, as suggested here This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although nothing actually seems to change), which renders it a bit useless in practice (e.g. saving a file runs flymake which immediately modifies the buffer again). Here's what I did to almost get it working: Installed pyflakes on the remote box. Customized my tramp-remote-process-environment variable so that pyflakes could be found in its PATH Used a