Function: ghostel--enter-readonly-input-mode

ghostel--enter-readonly-input-mode is a natively compiled function defined in ghostel.el.

Signature

(ghostel--enter-readonly-input-mode SPEC)

Documentation

Enter the read-only input mode SPEC names.

copy and emacs enter that mode directly; default follows ghostel-readonly-default-mode; nil is a no-op.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--enter-readonly-input-mode (spec)
  "Enter the read-only input mode SPEC names.
`copy' and `emacs' enter that mode directly; `default' follows
`ghostel-readonly-default-mode'; nil is a no-op."
  (pcase (if (eq spec 'default) ghostel-readonly-default-mode spec)
    ('copy  (ghostel-copy-mode))
    ('emacs (ghostel-emacs-mode))))