Function: ghostel--leave-readonly-state

ghostel--leave-readonly-state is a natively compiled function defined in ghostel.el.

Signature

(ghostel--leave-readonly-state)

Documentation

Common teardown when leaving copy or Emacs mode.

Restores the cursor style, deactivates the mark, and disables hl-line-mode again.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--leave-readonly-state ()
  "Common teardown when leaving copy or Emacs mode.
Restores the cursor style, deactivates the mark, and disables
`hl-line-mode' again."
  (remove-hook 'pre-redisplay-functions #'ghostel--fake-cursor-update t)
  (ghostel--fake-cursor-clear)
  (setq cursor-type ghostel--saved-cursor-type)
  (deactivate-mark)
  (when ghostel--saved-hl-line-mode
    (hl-line-mode -1)))