[ESS] How to assign function key
Vitalie Spinu
@p|nuv|t @end|ng |rom gm@||@com
Thu Feb 4 21:41:55 CET 2016
>> On Fri, Feb 05 2016 09:21, Patrick Connolly wrote:
> with (define-key ess-mode-map [f7] 'ess-comint-kill-output)
> eval: Symbol's value as variable is void: ess-mode-map
These sort of errors mean that you didn't load ess or comint yet. Assign these
keys after your (load "path/to/ess"). Or if you are using it from melpa and
don't want to load ESS in advance do
(with-eval-after-load "ess-mode"
(define-key ess-mode-map [f7] 'ess-comint-kill-output)
...
...
)
Vitalie
More information about the ESS-help
mailing list