[ESS] How to assign function key

Vitalie Spinu @p|nuv|t @end|ng |rom gm@||@com
Wed Feb 3 10:21:03 CET 2016




> (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.

Works for me. Is it F7 or f7 that caused your problem?

> I'm too lazy to type C-c C-o every time and would appreciate help with the
> correct syntax.

I never do C-c C-o. Why do you need that for? Just let the output
accumulate. You can clear the buffer with C-c M-o from time to time if your feel
like.

  Vitalie




More information about the ESS-help mailing list