1

I am sitting on OS X and I have written the following elisp to set comint-previous-input function to s-up, but my configuration is not working. What might be wrong here?

(add-hook 'inferior-python-mode-hook
      (lambda () (local-set-key (kbd "s-<up>") 'comint-previous-input)))
4

(kbd "s-<up>") isn't valid.

The great thing about kbd is that Emacs will tell you the argument to pass it, if you ask it using C-hk or C-hc. You never have to guess.

In this case, Emacs tells me that "<s-up>" is the correct argument.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.