Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Right, got it now; sorry about the earlier confusion.</p> <p>Taking a quick look through flymake.el, for *.c files, the 'make' invocation ultimately comes from here:</p> <pre><code>(defun flymake-get-make-cmdline (source base-dir) (list "make" (list "-s" "-C" base-dir (concat "CHK_SOURCES=" source) "SYNTAX_CHECK_MODE=1" "check-syntax"))) </code></pre> <p>That gets called by <code>flymake-simple-make-init</code>, which is called because that's what <code>*.c</code> files are mapped to by <code>flymake-allowed-file-name-masks</code>.</p> <p>So, the <em>right</em> answer would be to modify <code>flymake-allowed-file-name-masks</code> to map <code>*.c</code> files to a different init defun, then write that defun to call rake the way you want. There are a bunch of those defuns already written for various things, and most of them are pretty short and sweet -- so even if you don't know Emacs Lisp, you could probably get something to work with a minimum of futzing. (The <em>really really right</em> answer would be to change <code>flymake-simple-make-init</code> so that the command name was read from a defcustom variable, then submit that change back upstream...)</p> <p>The quick-and-dirty answer, given that you said all you need to do is call 'rake' with the same args as 'make', would be to grab a copy of flymake.el, stick it early in your <code>load-path</code>, and munge the 'make' string in <code>flymake-get-make-cmdline</code> to read 'rake' instead. That'll at least get you to the next step...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload