<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Comint on The Lone C++ Coder's Blog</title><link>https://www.lonecpluspluscoder.com/tags/comint/</link><description>Recent content in Comint on The Lone C++ Coder's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 09 May 2017 18:31:39 +0000</lastBuildDate><atom:link href="https://www.lonecpluspluscoder.com/tags/comint/index.xml" rel="self" type="application/rss+xml"/><item><title>RTFM, or how to make unnecessary work for yourself editing inf-mongo</title><link>https://www.lonecpluspluscoder.com/2017/05/09/rtfm-make-unnecessary-work-editing-inf-mongo/</link><pubDate>Tue, 09 May 2017 18:31:39 +0000</pubDate><author>Timo Geusch</author><guid>https://www.lonecpluspluscoder.com/2017/05/09/rtfm-make-unnecessary-work-editing-inf-mongo/</guid><description>&lt;p&gt;Turns out I made some unnecessary &amp;ldquo;work&amp;rdquo; for myself when I tried to &lt;a href="https://www.lonecpluspluscoder.com/2017/05/07/extending-inf-mongo-to-support-scrolling-through-command-history/"&gt;add support for command history to inf-mongo&lt;/a&gt;. As Mickey over at Mastering Emacs points out in a blog post, comint mode already comes with &lt;em&gt;M-n&lt;/em&gt; and &lt;em&gt;M-p&lt;/em&gt; mapped to &lt;em&gt;comint-next-input&lt;/em&gt; and &lt;em&gt;comint-previous-input&lt;/em&gt;. And of course they work in &lt;a href="https://github.com/endofunky/inf-mongo"&gt;inf-mongo&lt;/a&gt; right out of the box. I still prefer using M-up and M-down, plus I learned a bit about sparse key maps and general interaction with comint-mode. So from that perspective, no time was wasted although it wasn&amp;rsquo;t strictly necessary to put in the work.&lt;/p&gt;</description></item><item><title>Extending inf-mongo to support scrolling through command history</title><link>https://www.lonecpluspluscoder.com/2017/05/07/extending-inf-mongo-to-support-scrolling-through-command-history/</link><pubDate>Sun, 07 May 2017 20:30:00 +0000</pubDate><author>Timo Geusch</author><guid>https://www.lonecpluspluscoder.com/2017/05/07/extending-inf-mongo-to-support-scrolling-through-command-history/</guid><description>&lt;p&gt;I&amp;rsquo;m spending a lot of time in the MongoDB shell at the moment, so of course I went to see if someone had built an Emacs mode to support the MongoDB shell. Google very quickly pointed me at &lt;a href="https://github.com/endofunky/inf-mongo"&gt;endofunky&amp;rsquo;s inf-mongo mode&lt;/a&gt;, which implements a basic shell interaction mode with MongoDB using comint. We have a winner, well, almost. The mode does exactly what it says on the tin, but I wanted a little more, namely being able to scroll through my command history. Other repl modes like &lt;a href="https://github.com/clojure-emacs/cider"&gt;Cider&lt;/a&gt; have this functionality already, so it couldn&amp;rsquo;t be too hard to implement, could it?&lt;/p&gt;</description></item></channel></rss>