emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
quoll 2020-11-20T01:22:20.183200Z

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?

joshmiller 2020-11-20T04:35:05.184100Z

@quoll You can enable Paredit in Clojure buffers with (add-hook 'clojure-mode-hook #'paredit-mode) in your init.el

quoll 2020-11-20T05:14:03.184500Z

I’m sorry. I should have said. That line does appear in my init.el file

quoll 2020-11-20T05:21:56.185400Z

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

quoll 2020-11-20T05:24:03.186600Z

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

quoll 2020-11-20T05:25:56.187100Z

Ah… I just tried moving the line to immediately after the package installs, and it worked!

quoll 2020-11-20T05:31:06.191Z

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 🙂

quoll 2020-11-20T05:31:23.191200Z

Thank you for the response

2020-11-20T12:54:45.192200Z

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

2020-11-20T12:55:43.192900Z

any idea how to get that working again?