Rebinding keys

What happened?

In my vim days, I had this line in my .vimrc file

"let clear search highlight in normal mode :nnoremap :nohlsearch/

My attempt to translate that to Doom lisp

(map! :n “RET” #'evil-ex-nohighlight)

What did you expect to happen?

I expected it to clear search highlights if I hit CR in normal mode.

Steps to reproduce

  1. Evaluate my lisp code
  2. Search for something and note highlights
  3. Watch nothing happen when pressing

System information

Loading data dump...

I’m pretty sure just hitting ESC does this?

1 Like