Reputation: 7374
Im trying to get paredit to work in Emacs but i can't even find it when I type M-x paredit* nothing comes up about paredit.
When I use (add-hook 'clojure-mode-hook #'enable-paredit-mode)
emacs tells me void function.
What is the problem, as i understand it paredit ships with emacs and no additional install is needed.
Upvotes: 2
Views: 754
Reputation: 5369
You need to (require 'paredit)
somewhere in your init file before you can (enable-paredit-mode)
. Alternately, paredit
is autoloaded: you could also use (paredit-mode)
(which should be available even without the require
) which will load everything else. ... aaand actually, enable-paredit-mode
is also an autoloaded function, so that should have worked. Are you sure you've got the package installed?
Upvotes: 2