daleharvey / jshint-mode

JSHint integrated into emacs
Other
93 stars 26 forks source link

Feature request: Error messages in mode line #17

Open timmywil opened 11 years ago

timmywil commented 11 years ago

It would be great if I could stay on the keyboard to view errors rather than having to mouse over text.

sabof commented 11 years ago

You could try C-h .

timmywil commented 11 years ago

That works, would be nice if the cursor could trigger the help text, same way js2-mode works.

sabof commented 11 years ago

Personally I find it annoying, but I suppose you could add this to your js-mode-hook. Or any other mode-hook where you use flymake.

(add-hook 'post-command-hook 
          (lambda () 
            (display-local-help 1))
          nil t)
timmywil commented 11 years ago

Woops

timmywil commented 11 years ago

I tried your suggestion. I couldn't get it to work.

sabof commented 11 years ago

Try copying the above code, opening a js file, and then M-: C-y RET. If this works, there was probably a problem setting up the mode-hook.

init-js commented 10 years ago

I've had great success with flymake-cursor. It does exactly what you want. It's quite useful for windowless emacs too (-nw)

https://github.com/init-js/jshint-mode/commit/dc4c30095919e5f20734e0324c895529f0317fa8