This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-26
Channels
- # aleph (6)
- # announcements (1)
- # babashka (18)
- # beginners (13)
- # calva (18)
- # cider (5)
- # clojure (144)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (29)
- # clojure-uk (4)
- # emacs (9)
- # etaoin (51)
- # events (1)
- # gratitude (1)
- # hyperfiddle (9)
- # lsp (4)
- # off-topic (6)
- # pathom (61)
- # rdf (1)
- # releases (3)
- # shadow-cljs (16)
- # vrac (1)
- # yada (1)
- # yamlscript (3)
Hello again,
I am trying to configure emacs to enable paredit-mode for clj files using below in config.el
(add-to-list 'auto-mode-alist '("\\.clj\\'" . paredit-mode))
What happens now is after i open/create a new clojure file, the other modes are such as cider-mode, clojure-mode are not enabled.
Don't think it makes a difference but I am using doom.
Also afaik paredit should be a minor mode, but your config makes it the main mode. Which would then override Cider etc
Here's how I did it:
(after! lisp-mode
(add-hook! 'lisp-mode-hook #'paredit-mode)
(add-hook! 'sly-mode #'paredit-mode))
(after! clojure-mode
(add-hook! 'clojure-mode-hook #'paredit-mode)
(add-hook! 'cider-repl-mode #'paredit-mode))
🙌 1
if i remember correctly, i had to package-install paredit
yay this works, thanks brother
In general you should use hooks, not change auto-mode-alist