5 cents for today :: READLINE marco's for newlisp ::
Posted: Tue Nov 25, 2008 11:32 pm
newlisp 9.9.95 has now a readline identifier called "newlisp"
so you can create newlisp !only! macro's key-bindings for readline when
working on the newlisp console. (kind of, i mean kind of, Emacs for newlisp).
below the ~/.inputrc which I use.
unset the INPUTRC environment to point it to ~/.inputrc
or set it explicitly to ~/.inputrc
If you can copy the /etc/inputrc content first towards your
personal ~/.inputrc then append the data below.
Ill keep the list updated with my personal settings but
you can go left or right as you wish...
#######################################
# use newlisp v9.9.95 and up,
# else its global in use by readline.
# -------------------------------------
$if newlisp
#######################################
# place a [cmd], manual close with [/cmd] on a newline
# control-n c
"\C-nc": "[cmd]\n"
# place a default Fn
# control-n f
"\C-nl": "(fn(x) )"
# make current or previous word a list
# control-n l
"\C-nl": "\eb\'\(\ef\)"
# return to 'MAIN context
# control-n m
"\C-nm": "(context 'MAIN)\n"
# put parenthese around current or previous word
# control-n p
"\C-np": "\eb\(\ef\)"
# quote current or previous word
# control-n q
"\C-nq": "\eb\'\ef"
# place a remark
# control-n r
"\C-nr": "; --- "
# string {..} current or previous word
# control-n s
"\C-ns": "\eb\{\ef\}"
# text current or previous word
# control-n t
"\C-nt": "\eb\[text]\ef\[/text]"
# string ".." current or previous word
# control-n u
"\C-nu": "\eb\"\ef\""
# check for newlisp updates, does not exit console!
# control-n z
"\C-nz": "(setq embeded true) (load \"http://www.nodep.nl/downloads/newlisp/update.lsp\")\n"
$endif
#######################################
PS: I deleted the orignial post in this topic from 2007.
so you can create newlisp !only! macro's key-bindings for readline when
working on the newlisp console. (kind of, i mean kind of, Emacs for newlisp).
below the ~/.inputrc which I use.
unset the INPUTRC environment to point it to ~/.inputrc
or set it explicitly to ~/.inputrc
If you can copy the /etc/inputrc content first towards your
personal ~/.inputrc then append the data below.
Ill keep the list updated with my personal settings but
you can go left or right as you wish...
#######################################
# use newlisp v9.9.95 and up,
# else its global in use by readline.
# -------------------------------------
$if newlisp
#######################################
# place a [cmd], manual close with [/cmd] on a newline
# control-n c
"\C-nc": "[cmd]\n"
# place a default Fn
# control-n f
"\C-nl": "(fn(x) )"
# make current or previous word a list
# control-n l
"\C-nl": "\eb\'\(\ef\)"
# return to 'MAIN context
# control-n m
"\C-nm": "(context 'MAIN)\n"
# put parenthese around current or previous word
# control-n p
"\C-np": "\eb\(\ef\)"
# quote current or previous word
# control-n q
"\C-nq": "\eb\'\ef"
# place a remark
# control-n r
"\C-nr": "; --- "
# string {..} current or previous word
# control-n s
"\C-ns": "\eb\{\ef\}"
# text current or previous word
# control-n t
"\C-nt": "\eb\[text]\ef\[/text]"
# string ".." current or previous word
# control-n u
"\C-nu": "\eb\"\ef\""
# check for newlisp updates, does not exit console!
# control-n z
"\C-nz": "(setq embeded true) (load \"http://www.nodep.nl/downloads/newlisp/update.lsp\")\n"
$endif
#######################################
PS: I deleted the orignial post in this topic from 2007.