0

windows 10, emacs 26.1, helm 3.0

I use C-c C-l (comint-dynamic-list-input-ring) I get something like this: enter image description here

But I don't like this. I want to use helm-comint-input-ring. I want to get something like this:

enter image description here

So I set in my init.el the next keybinding

(define-key shell-mode-map (kbd "C-c C-l") 'helm-comint-input-ring)

But when I start Emacs I get error:

Warning (initialization): An error occurred while loading ‘d:/Programs/emacs/.emacs.d/init.el’:

Symbol's value as variable is void: shell-mode-map

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

How I can fix this?

Drew
  • 77,472
  • 10
  • 114
  • 243
a_subscriber
  • 4,062
  • 1
  • 18
  • 56

0 Answers0