caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] indenting a .ml file with emacs in batch mode using ocaml-mode style
@ 2015-02-24 17:57 Francois Berenger
  2015-02-24 20:26 ` Thomas Gazagnaire
  2015-02-25  8:43 ` Ronan Le Hy
  0 siblings, 2 replies; 3+ messages in thread
From: Francois Berenger @ 2015-02-24 17:57 UTC (permalink / raw)
  To: OCaml Mailing List

Hello,

Is there anyone who knows how to tell emacs how to indent a given .ml 
file using the indentation style from ocaml-mode?

It should ressemble something like this:

emacs -batch source.ml \
   --eval '(indent-region (point-min) (point-max) nil)' \
   -f save-buffer

I just don't know how to tell emacs to use the ocaml-mode for that
instead of whatever the user has configured in his ~/.emacs (for 
example, instead of tuareg-mode).

Thanks a lot,
Francois.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-25  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 17:57 [Caml-list] indenting a .ml file with emacs in batch mode using ocaml-mode style Francois Berenger
2015-02-24 20:26 ` Thomas Gazagnaire
2015-02-25  8:43 ` Ronan Le Hy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).