Hi. So, not really being an emacs person, I tried to update some packages today. 2 things came from this: • Starting emacs now has a split screen with help in the lower frame. • paredit is no longer enabled by default in any file I can just close the help frame when I start the app, but needing to enabled paredit for every file I open is getting painful, and is leading to mistakes when I start editing without noticing that my parens are not balanced (I use paredit on both emacs and vim). Does anyone have a suggestion for how I might enable paredit automatically on .clj/.cljc/.cljs files please?
@quoll You can enable Paredit in Clojure buffers with (add-hook 'clojure-mode-hook #'paredit-mode)
in your init.el
I’m sorry. I should have said. That line does appear in my init.el file
other packages appear to be working. For instance, I have syntax highlighting, and I use evil mode, which is enabled by default. Just not paredit
So my installation isn’t disconnected from the packages in the ~/.emacs.d/elpa directory. And it’s able to autoload some of them. But not paredit
Ah… I just tried moving the line to immediately after the package installs, and it worked!
It used to say:
...stuff...
(package-initialize)
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(require 'evil)
(evil-mode 1)
(load-theme 'deeper-blue)
(require 'evil-leader)
(global-evil-leader-mode)
(add-hook 'clojure-mode-hook 'paredit-mode)
...more stuff...
And this did not work. It worked earlier today, but like I said, after a package update it stopped.
The init.el now says:
...stuff...
(package-initialize)
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(add-hook 'clojure-mode-hook 'paredit-mode)
(require 'evil)
(evil-mode 1)
(load-theme 'deeper-blue)
(require 'evil-leader)
(global-evil-leader-mode)
...stuff...
And this is working just fine.
The only part of that code that I ever messed with was loading the deeper-blue theme, so I thought that maybe if I moved the add-hook
above it (and the evil setup) then it might work. I think I only tried something that silly because it’s after 12am 🙂Thank you for the response
I switched from Helm to selectrum+prescient and in the process I lost auto completion for shell commands in the minibuffer (with M-!) for example
any idea how to get that working again?