[Omake] Re: bug with ocamldep?

David Kågedal davidk at lysator.liu.se
Wed Jun 20 11:58:08 PDT 2007


Anastasia Gornostaeva <ermine at ermine.pp.ru> writes:

> On Wed, Jun 20, 2007 at 10:37:24AM -0400, Christopher L Conway wrote:
>>  Anastasia,
>> 
>>  What do you mean by "integrate"? An omake-mode with syntax and
>>  indentation support? Or a function that will invoke omake for you from
>>  within emacs? If you mean the former, you're out of luck. If you mean
>>  the latter, here's a really cut-rate emacs hack for you:
>>  (setq-default compile-command "omake")
>> 
>>  Now "M-x compile" will invoke omake instead of make. You can also put
>>  do this at a buffer-local level, which is what I typically do. E.g.,
>>  put the following at the end of an OCaml source file:
>
> Yes, i want the compilation and linking to error locations.
> But such command shoul depend on which makefile used in current directory -
> Makefile or OMakefile. Could you append some lines for it for .emacs?

When you run M-x compile, you give i the command to run, defaulting to
the last command you ran.  You wouldn't want tii always, say, run
"omake" without arguments since that would give you no way to change
which targets to build or the options to omake.

Creating another command that selects a command to run based on the
current directory etc wouldn't be hard to do, but I'm not sure what
you are really asking for.  Can you explain how you'd expect to use
it?

One tip for running omake in emacs is to use the -w flag to help emacs
find the files mentioned in the logs.

-- 
David Kågedal



More information about the Omake mailing list