Thank you Pascal. What I didn't understand is why the keybinds are so different in the slime-repl-mode and in the lisp-mode while editing a .lisp file.

Best,



On Fri, Jul 27, 2018 at 10:12 PM Pascal Bourguignon <pjb@informatimago.com> wrote:


On 28 Jul 2018, at 02:40, Alexandre Rademaker <arademaker@gmail.com> wrote:


After the last Emacs upgrade to 26.1, the M-s key bind from paredit-mode is replaced by `Next element matching (regexp)` command in the slime repl buffer.  Sorry for the silly question, but how to get M-s mapped to paredit-splice-sexp again? In a lisp file buffer it is working as expected.


(push (lambda () (local-set-key (kbd “M-s”) ‘paredit-splice-sexp)) slime-repl-mode-hook)

or more emacsy:  (add-hook ‘slime-repl-mode-hook (lambda () (local-set-key (kbd “M-s”) ‘paredit-splice-sexp)))

Also to consider: there’s probably a keymap for the silme-repl-mode, you could modify it directly.


-- 
__Pascal J. Bourguignon__