I am trying to set up some keybindings for working with scheme. I have these two mode hooks which contain the bindings I want:
(add-hook 'scheme-mode-hook
(lambda ()
(local-set-key (kbd "C-j") 'scheme-send-last-sexp)))
(add-hook 'scheme-mode-hook
(lambda ()
(local-set-key (kbd "C-c C-j") 'scheme-send-region)))
The problem is that I also have these hooks defined which I use for elisp:
(eval-after-load "paredit"
#'(define-key paredit-mode-map (kbd "C-j") 'eval-last-sexp))
(eval-after-load "paredit"
#'(define-key paredit-mode-map (kbd "C-c C-j") 'eval-region))
My question is: how can I modify eval-after-load to set up my scheme key bindings only when in Scheme mode?