purcell / color-theme-sanityinc-solarized

A pair of Emacs color themes based on Ethan Schoonover's 'solarized' theme
83 stars 20 forks source link

this theme makes emacs very slow sometimes #20

Closed banyudu closed 9 years ago

banyudu commented 9 years ago

In certain cases, emacs is very slow, and CPU cost very high.

My Emacs Environment

  1. OS: Windows 10 64bit
  2. Emacs config repo: https://github.com/purcell/emacs.d

    Cases

  3. Editing text or moving cursor in cc-mode when there are chinese comments(English comments are ok).
  4. Editing text or moving cursor in nxml-mode when there are chinese comments.
  5. Editing text or moving cursor in markdown-mode when there are chinese section titles.

    Solutions

I have tried a few times to speed up emacs.

  1. disable flyspell/flymake/flycheck: fail
  2. disable font-lock-mode: ok
  3. disable-theme: ok

I am not good at elisp, so I just comment (require 'init-themes) in init.el to speed up emacs.

purcell commented 9 years ago

Try M-x customize-theme, choose a built-in theme (e.g. tango), save the settings and then restart Emacs -- does the same problem happen after that? If so, the problem was not this theme.

banyudu commented 9 years ago

Thanks for your reply. Tango make emacs slow, too. Even when (require 'init-themes) is commented. So it's not this theme's bug.

purcell commented 9 years ago

Ah, okay.

Now, you're using my emacs.d config, right? So perhaps try commenting out all or parts of init-locales.el, e.g. the (setq utf-translate-cjk-mode nil) line. Let me know if that helps.

banyudu commented 9 years ago

Thanks, it works. The solution is commenting the (set-language-environment 'utf-8) line instead of (setq utf-translate-cjk-mode nil) line.

Additionally, I found tango-dark theme works even without commenting the line above.