Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIHugging Face Arena Human Preference 55K

doom emacs use capslock key to exit insert mode in evil

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-3.5-turbo-1106’s answer.
  1. User

    doom emacs use capslock key to exit insert mode in evil

  2. Assistant

    Yes, in Doom Emacs, you can configure the Caps Lock key to exit insert mode in Evil mode. Here's how you can do it:

    1. Open your Doom Emacs configuration file, which is usually located at ~/.doom.d/config.el or ~/.doom.d/init.el.

    2. Add the following code to remap the Caps Lock key to the Escape key in Evil mode:

    (after! evil
      (setq evil-esc-delay 0)
      (define-key evil-insert-state-map (kbd "<capslock>") 'evil-normal-state))
    
    1. Save the configuration file and restart Emacs.

    Now, when you press the Caps Lock key while in insert mode, it will act as the Escape key and switch to normal mode in Evil mode.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.