fix: Avoid recursive initialization#8
Conversation
I'm confused: this looks like it would enable the ruby checker in all buffers, even non-ruby buffers. Am I missing something? |
|
Sorry, (defun flymake-ruby-load ()
"Configure flymake mode to check the current buffer's ruby syntax."
(interactive)
+ (when (eq 'ruby-mode major-mode)
(flymake-easy-load 'flymake-ruby-command
flymake-ruby-err-line-patterns
'tempdir
"rb")))You can use flymake-eask as the example: (use-package flymake-eask :hook (flymake-mode . flymake-eask-load))All my flymake packages have the major mode guard: 🤔 |
|
|
|
The real issue is that I don't want flymake-mode to turn on when registering a Flymake checker. I configured it this way because flymake-mode will be turned on once I enter the major mode. 🤔 |
I want to setup the checker only when
flymakeis loaded; therefore, I have this:But this will cause infinite recursion due to
flymake-easy/flymake-easy.el
Line 106 in de41ea4
This patch avoid this.