4.8 Look and Feel

There may be many other things you’d like to customize about Symex which aren’t included as customizations, such as how the cursor looks or how the mode line looks. These may be specific to your own Emacs configuration or just to your unique preferences. Symex provides lifecycle hooks that allow you to customize it any way you like:

For example, since Symex already includes a customizable overlay to highlight selected expressions, you may prefer to disable the regular Emacs cursor upon entry to Symex mode, and re-enable it upon exit. To do this, add this somewhere in your Emacs config for Symex:

(defun my-enable-cursor ()
  "Enable the cursor."
  (internal-show-cursor nil t))

(defun my-disable-cursor ()
  "Disable the cursor."
  (internal-show-cursor nil nil))

(add-hook 'symex-editing-mode-post-entry-hook
          #'my-disable-cursor)
(add-hook 'symex-editing-mode-post-exit-hook
          #'my-enable-cursor)