How to Map Key-Bindings in .inputrc, For Maxima only?
Subject: How to Map Key-Bindings in .inputrc, For Maxima only?
From: Leo Butler
Date: Tue, 23 Aug 2011 11:49:17 +0000
first name <33facebook at gmail.com> writes:
> Please let me explain my question.
>
> Usually, i use the following lines, in order to bind some shortcut,
> only for some application name..
> for example:
> $if bash
> <<some key bindings...>>
> $endif
>
> $if gdb
> <<other key bindings...>>
> $endif
>
> Now, the bash man page says that EVERY application that uses the
> readline library should provide an "application name" so it can be
> used in the "$if <<aplication-name>>" test, like i've showed above...
>
> So, I tried "$if Maxima" and $if maxima", but they are not
> working....so what is the application name?
Hi, My guess is that the application name would be provided by the underlying
lisp. But many lisps that Maxima runs on do not have readline
support, so perhaps you are best off using rlwrap (provided you don't
use it for other purposes)? Alternatively, Maxima has can be run inside
Emacs with its own comint-based mode and keybindings.
--
Leo Butler <l_butler at users.sourceforge.net>
SDF Public Access UNIX System - http://sdf.lonestar.org