Function: claude-code-ide--apply-ghostel-evil-escape

claude-code-ide--apply-ghostel-evil-escape is a natively compiled function defined in claude-code-ide.el.

Signature

(claude-code-ide--apply-ghostel-evil-escape)

Documentation

Set the buffer-local ESC routing for the current ghostel buffer.

Overrides evil-ghostel--escape-mode with claude-code-ide-ghostel-evil-escape so ESC behaves as configured in Claude Code sessions only, without touching the global evil-ghostel-escape default. A nil setting leaves the value that evil-ghostel-mode derived from the global default in place. No-op unless evil-ghostel-mode is active in this buffer.

Source Code

;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
(defun claude-code-ide--apply-ghostel-evil-escape ()
  "Set the buffer-local ESC routing for the current ghostel buffer.
Overrides `evil-ghostel--escape-mode' with
`claude-code-ide-ghostel-evil-escape' so ESC behaves as configured in
Claude Code sessions only, without touching the global
`evil-ghostel-escape' default.  A nil setting leaves the value that
`evil-ghostel-mode' derived from the global default in place.  No-op
unless `evil-ghostel-mode' is active in this buffer."
  (when (and claude-code-ide-ghostel-evil-escape
             (bound-and-true-p evil-ghostel-mode))
    (setq-local evil-ghostel--escape-mode claude-code-ide-ghostel-evil-escape)))