[ESS] small elisp library for iESS

Patrick Drechsler patrick.drechsler at gmx.net
Tue Dec 7 01:38:24 CET 2004


Sebastian Luque wrote on 06 Dec 2004 19:54:22 MET:

First let me thank you for sharing r-utils!

> Martin Maechler wrote:
>
>> - At the end, it puts all these utilities on the F1-F9
>> function keys and their shifted versions.  This may be
>> undesired for some users (like me), who have used some of the
>> function keys for different things for a very long time.
>
[snip]
> Any suggestions as to what key bindings to use without
> interferring? or as to _how_ to choose them?

Why not bind your functions to something like 

`C-c c <yourfunctions-abbrev-key>'?

ie:

--8<------------------------schnipp------------------------->8---
(add-hook
 'inferior-ess-mode-hook
 '(lambda ()
    (define-key inferior-ess-mode-map [(control c) (c) (l)]	'r-utils-listpkg)
    (define-key inferior-ess-mode-map [(control c) (c) (L)]     'r-utils-loadpkg)
    (define-key inferior-ess-mode-map [(control c) (c) (c)]	'r-utils-cranpkg)
    (define-key inferior-ess-mode-map [(control c) (c) (C)]     'r-utils-installcran)
    (define-key inferior-ess-mode-map [(control c) (c) (b)]	'r-utils-biocpkg)
    (define-key inferior-ess-mode-map [(control c) (c) (?)]     'r-utils-installbioc)
    (define-key inferior-ess-mode-map [(control c) (c) (U)]	'r-utils-updatecran)
    (define-key inferior-ess-mode-map [(control c) (c) (B)]     'r-utils-updatebioc)
    (define-key inferior-ess-mode-map [(control c) (c) (a)]	'r-utils-apropos)
    (define-key inferior-ess-mode-map [(control c) (c) (?)]     'r-utils-chgdir)
    (define-key inferior-ess-mode-map [(control c) (c) (m)]	'r-utils-rmall)
    (define-key inferior-ess-mode-map [(control c) (c) (o)]     'r-utils-objs)
    (define-key inferior-ess-mode-map [(control c) (c) (?)]	'r-utils-loadwkspc)
    (define-key inferior-ess-mode-map [(control c) (c) (?)]	'r-utils-savewkspc)))
--8<------------------------schnapp------------------------->8---

ym2¢

Patrick
-- 
The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners. -- Ernst Jan Plugge




More information about the ESS-help mailing list