Doom-emacs: If disable 'smartparens', it occour an error when type 'o' in normal go mode.

Created on 5 Jan 2019  Â·  2Comments  Â·  Source: hlissner/doom-emacs

let: Cannot open load file: No such file or directory, smartparens

The system is macOS 10.14.2, and the Emacs version is 27.0.50(head version of emacs-plus).

elisp

Most helpful comment

Smartparens is a core plugin. It will cause problems if you disable core packages via (package! X :disable t). Instead of disabling them that way, I suggest disabling their functionality instead. For smartparens, that'd be:

(after! smartparens
  (smartparens-global-mode -1))

All 2 comments

Smartparens is a core plugin. It will cause problems if you disable core packages via (package! X :disable t). Instead of disabling them that way, I suggest disabling their functionality instead. For smartparens, that'd be:

(after! smartparens
  (smartparens-global-mode -1))

This page is high in Google's results for doom emacs / smartparens searches, but that fix is no longer correct. Instead (from the FAQ):

(remove-hook 'doom-first-buffer-hook #'smartparens-global-mode)
Was this page helpful?
0 / 5 - 0 ratings