[ESS] How to assign function key

Patrick Connolly p_connolly at slingshot.co.nz
Wed Feb 3 10:05:13 CET 2016


I have most of my function keys as shortcuts to frequent events.

These all work with ess-15.09-2:

(global-set-key [f1] 'ess-eval-line)
(global-set-key [f2] 'ess-eval-region-and-go)
(global-set-key [f3] 'ess-eval-line-and-step)
(define-key ess-mode-map [f4] 'ess-dump-object-into-edit-buffer)
(define-key inferior-ess-mode-map [f4] 'ess-dump-object-into-edit-buffer)

I don't understand the syntax, a fact which would be clear to someone
who does when they see me try this:

(global-set-key [f7] 'comint-kill-output)
or
(define-key ess-mode-map [f7] 'ess-comint-kill-output)

They would understand why I get a message that F7 is null or
undefined.  I'm too lazy to type C-c C-o every time and would
appreciate help with the correct syntax.

Thank you.


-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.



More information about the ESS-help mailing list