0

I want to auto-enable paredit it in clojure and clojurescript buffers, and have the following:

  (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
(eval-after-load ‘clojure-mode
  '((add-hook 'clojure-mode-hook #'enable-paredit-mode)
    (add-hook 'clojurescript-mode-hook #'enable-paredit)))

(eval-after-load ‘clojurescript-mode
  '((add-hook 'clojure-mode-hook #'enable-paredit-mode)
    (add-hook 'clojurescript-mode-hook #'enable-paredit)))



But it doesn't work.

  • 2
    Look at the values of the variables clojure-mode-hook and clojurescript-mode-hook with C-h v and see if they are set correctly. Why do you need enable-paredit-mode in one case and enable-paredit in the other? Why not use the same function? Also each eval-after-load should take care of its own hook: the other hook might not be defined yet. – NickD Jun 25 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.