syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.59k stars 4.9k forks source link

evil-cleverparens layer is absent in develop branch #11881

Closed achikin closed 5 years ago

achikin commented 5 years ago

Description :octocat:

evil-cleverparens layer is absent in develop branch

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: This is found in messages after startup is complete

Loading /Users/achikin/.spacemacs...done
(Spacemacs) Warning: Unknown layer evil-cleverparens declared in dotfile.
Spacemacs is ready.
(Spacemacs) Error in dotspacemacs/user-config: Symbol’s function definition is void: spacemacs/toggle-evil-cleverparens-on

Expected behaviour: :heart: :smile: evil-cleverparens works as expected

System Info :computer:

Backtrace :paw_prints:

Loading /Users/achikin/.spacemacs...done
(Spacemacs) Warning: Unknown layer evil-cleverparens declared in dotfile.
Spacemacs is ready.
(Spacemacs) Error in dotspacemacs/user-config: Symbol’s function definition is void: spacemacs/toggle-evil-cleverparens-on
sdwolfz commented 5 years ago

The evil-cleverparens layer was removed and cleverparens is now part of the spacemacs-evil distribution layer, as noted in the CHANGELOG.develop file.

Ionshard commented 4 years ago

For those who ended up here via Google:

evil-cleverparens was added to the spacemacs-evil layer and creates a toggle in major mode of modes that support it. Thus you can use ,Ts to toggle evil-cleverparens on.

The best way I could find to put evil-cleverparens on by default was to add the following to my dotspacemacs/user-config:

  ;; Cleverparens ON by default
  (use-package evil-cleverparens
    :defer t
    :init (spacemacs/toggle-evil-safe-lisp-structural-editing-on-register-hooks))

However, I am no expert so this could be very wrong.

duianto commented 4 years ago

Thanks for posting a solution to enable it on startup. I'm sure it's fine. If something works, keep using it until a better solution is discovered/suggested.