Bind sp-eval-expression' (replacing eval-expression') to "M-:"

This commit is contained in:
Gerard Vermeulen 2024-06-16 11:13:37 +02:00
parent 54a5f26a25
commit fb236d6825

View File

@ -5514,7 +5514,10 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][
(if arg
(insert (pp-to-string (eval expression lexical-binding)))
(pp-display-expression (eval expression lexical-binding)
"*SP Eval Output*"))))
"*SP Eval Output*")))
;; Do not change the "M-ESC :" `eval-expression' key binding.
(keymap-global-set "M-:" #'sp-eval-expression))
#+end_src
** [[https://github.com/davidshepherd7/electric-operator#readme][Electric operators]]