I like to use C-jto eval-last-sexp, but paredit-mode (which I like) overrides this value with paredit-newline. If you look at the paredit-mode docs, I don’t see anything like this paredit-mode-hookwhere I can add-hookcall local-set-keyor a similar function.
Anyone have a suggestion?
Update
Having chosen the two answers below and not having received much success, I think the problem may be due to the fact that paredit loads in several different contexts? To do this, I open the Common Lisp, Clojure, and Emacs Lisp files, all of which can use paredit. Unfortunately, different forms eval-last-sexphave slightly different names in each mode, so I cannot determine the key once for everything. Rather, I need to bind a key based on the main mode, in which I too. Hope this adds another useful data point.
source
share