smart-comint-up

Patrick Connolly p.connolly at hortresearch.co.nz
Thu Oct 24 00:10:13 CEST 2002


On Wed, 23-Oct-2002 at 03:23PM -0500, Wright, Kevin wrote:

|> 
|> All,
|> 
|> I just found a very useful bit of .emacs code from Tudor Hulubei and thought
|> I would share it here.  When the point is at the inferior-ess prompt, the up
|> arrow key recalls the previous item in the history list.  Otherwise, the
|> up-arrow key behaves normally.

That's a bonus for the lazy typist such as I.  I've previously had to
hold the Ctrl key at the same time to recall the history list.  The
easier things get, the easier we want them.

For the similarly lazy mouse scroller, I offer the following.

      (global-set-key [M-mouse-4] 'smart-comint-down)
      (global-set-key [M-mouse-5] 'smart-comint-up)

Behaves somewhat odd when not at point, but it's harmless.

best

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~


______________________________________________________
The contents of this e-mail are privileged and/or confidential to the
named recipient and are not to be used by any other person and/or
organisation. If you have received this e-mail in error, please notify 
the sender and delete all material pertaining to this e-mail.
______________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list