From: rixed@happyleptic.org
To: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocaml top-level line editing script
Date: Wed, 4 Jul 2012 20:24:15 +0200 [thread overview]
Message-ID: <20120704182415.GB7341@yeeloong> (raw)
In-Reply-To: <CANghcebYMmAMwvooRAPm2QONn2pCBEzwUgF29K5PN+3cWr1Y6Q@mail.gmail.com>
Interresting, although rlwrap gives you history, filename completion,
prompt coloring, syntax completion, brackets matching, use of an
external editor and easy configuration via .inputrc.
For instance I have this in my .zshrc:
alias ocaml='rlwrap --prompt-colour=green --multi-line --remember --complete-filenames --command-name=ocaml ocaml -rectypes'
And this in my .inputrc:
$if ocaml
"\C-o": "()\C-b"
"\C-n": ";;\n"
$endif
While the default C-^ launches vi (for multi-line edits)
I'm confident others have much more gorgeous inputrcs, though. Please share :-)
next prev parent reply other threads:[~2012-07-04 18:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 17:06 Aaron Bohannon
2012-07-04 17:56 ` "Markus W. Weißmann"
2012-07-05 1:46 ` Aaron Bohannon
2012-07-05 4:25 ` Aaron Bohannon
2012-07-04 18:24 ` rixed [this message]
2012-07-04 21:19 ` Anthony Tavener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120704182415.GB7341@yeeloong \
--to=rixed@happyleptic.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox