Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long bibtex files are slow due to show-smartparens-mode #2432

Closed
jcpetkovich opened this issue Jul 27, 2015 · 2 comments
Closed

Long bibtex files are slow due to show-smartparens-mode #2432

jcpetkovich opened this issue Jul 27, 2015 · 2 comments

Comments

@jcpetkovich
Copy link
Contributor

I get an enormous amount of lag when viewing bibtex files using show-smartparens-mode. Turning it off eliminates the lag.

To reproduce:

  1. clone development version of spacemacs
  2. run spacemacs without a .spacemacs file
  3. open a large bibtex file.
  4. search for something with C-s or similar.
@pennyan
Copy link

pennyan commented Sep 3, 2015

I have experienced something similar. With a 100K emacs lisp file(auto generated file), while navigating and encounter a big block with ')', it is slow.

I don't want to modify the spacemacs/packages.el file, which has a (show-smartparens-global-mode +1). I have to exclude the smartparens package from .spacemacs.

I want to know if there is a configuration to disable show-smartparens-mode. Or it would be better if spacemacs can stop searching matching parens if out of the screen.
Adding (show-smartparens-global-mode nil) to dotspacemacs/config does not disable it.

@TheBB
Copy link
Collaborator

TheBB commented Oct 28, 2015

@pennyan The mode is enabled unless the argument is a negative integer, you need (show-smartparens-global-mode -1).

You can now open large files with SPC f l, which will disable all special behaviour, including what causes this problem.

There is a feature planned in #3491 (comment) to include an automatic prompt for this, as well.

With that in mind I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants