zendevil.eth
zendevil.eth

Reputation: 1102

How to automatically enable paredit mode on all clojure, closurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function of my .spacemacs:


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

But it doesn't really work. What am I doing wrong?

Upvotes: 1

Views: 1352

Answers (1)

Gwang-Jin Kim
Gwang-Jin Kim

Reputation: 9865

In the paredit-mode wiki one can see it should be:

;; paredit autoload
  (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
  (add-hook 'clojure-mode 'enable-paredit-mode)
  (add-hook 'clojurescript-mode 'enable-paredit-mode)

So not #' but instead of that '.

Upvotes: 2

Related Questions