This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-20
Channels
- # announcements (1)
- # beginners (48)
- # cljdoc (6)
- # cljs-dev (1)
- # cljsjs (1)
- # clojure (13)
- # clojure-dev (6)
- # clojure-estonia (1)
- # clojure-europe (1)
- # clojure-finland (8)
- # clojure-gamedev (3)
- # clojure-spec (35)
- # clojure-uk (25)
- # clojurescript (9)
- # datascript (1)
- # datomic (18)
- # figwheel-main (2)
- # fulcro (5)
- # graphql (1)
- # jobs (16)
- # off-topic (76)
- # pathom (39)
- # re-frame (6)
- # reagent (7)
- # remote-jobs (6)
- # rum (3)
- # shadow-cljs (54)
- # spacemacs (8)
- # speculative (2)
- # yada (72)
how i enable paredit mode in spacemacs, i use 'enable-paredit-mode' for this for each file. but i want to enable paredit mode permanently
Hi, i cannot give you the exact syntax from the top of my head from my phone, but there are hooks for opening different filetypes where you can call functions, in those hooks you can enable modes, you put them in your spacemacs config file.
Here is an exacple for another mode: https://github.com/syl20bnr/spacemacs/issues/7693#issuecomment-259373212
@jaharapi Instead of using paredit, I would encourage you to try *smartparens*, which is already part of the Clojure layer. Paredit was last updated in December 2014.
Smartparens in strict mode works just like paredit and for more than just lisp languages too. You can enable smartparents in your .spacemacs
file
dotspacemacs-smartparens-strict-mode t
dotspacemacs-smart-closing-parenthesis t
More details here: https://practicalli.github.io/spacemacs/install-spacemacs/smartparens.html
The *lisp* state, SPC k
, provides a very powerful set of tools for structured editing using smartparens
If you are using Evil (Vim) style editing and are using the develop
branch of Spacemacs, then enabling Evil safe structural editing is recommended
https://practicalli.github.io/spacemacs/install-spacemacs/evil-structural-editing.htmlIf you prefer to have the paredit keybindings back (and prefer Emacs style keybindings) there are examples on this website that you could just add to the dotspacemacs/user-config
section of your .spacemacs
file.
https://joyheron.com/post/sketchnote/clojure-meetup/2017/08/17/spacemacs.html