Fork me on GitHub
#spacemacs
<
2019-01-20
>
Ahmed07:01:30

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

spfeiffer07:01:49

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.

practicalli-johnny12:01:03

@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.html

practicalli-johnny12:01:02

If 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

Ahmed15:01:26

thanks and i also want my paredit keybinding back

Ahmed15:01:58

just switch to prelude to spacemacs

Ahmed15:01:24

evil mode is still too evil for me