This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-20
Channels
- # babashka (56)
- # beginners (151)
- # calva (3)
- # cider (31)
- # clj-kondo (17)
- # cljs-dev (5)
- # clojure (26)
- # clojure-australia (21)
- # clojure-dev (7)
- # clojure-europe (23)
- # clojure-nl (5)
- # clojure-spec (54)
- # clojure-uk (11)
- # clojuredesign-podcast (8)
- # clojurescript (77)
- # community-development (10)
- # core-typed (1)
- # cursive (3)
- # datomic (7)
- # docker (67)
- # emacs (10)
- # expound (6)
- # figwheel-main (3)
- # graalvm (67)
- # helix (10)
- # java (13)
- # jobs (6)
- # kaocha (4)
- # leiningen (15)
- # malli (2)
- # meander (31)
- # off-topic (40)
- # pedestal (9)
- # rdf (7)
- # reagent (5)
- # reitit (9)
- # remote-jobs (5)
- # shadow-cljs (94)
- # sql (7)
- # testing (12)
- # tools-deps (75)
- # vim (13)
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
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 🙂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?