airline-themes icon indicating copy to clipboard operation
airline-themes copied to clipboard

airline-themes causes a really slow startup on GUI emacs

Open Xe0n0 opened this issue 9 years ago • 11 comments

My current config for theme is

(load-theme 'base16-eighties-dark t)

(require 'powerline) (powerline-default-theme) (require 'airline-themes) (load-theme 'airline-base16-gui-dark)

The emacs startup in terminal takes around 2-3 seconds, which is normal. But the GUI emacs can take up to 7 seconds to startup, only removing the airline-themes config will solve the problem.

Xe0n0 avatar Aug 02 '15 04:08 Xe0n0

Hey @ZeR0-Wu, I am using terminal and GUI emacs in Mac OSX and have about a 4-5 second startup time in both. I'm not running (powerline-default-theme) as the (load-theme 'airline-base16-gui-dark) handles setting the modeline correctly. Try removing that. I'm not too familiar with the emacs package loading process and could be messing something up.

AnthonyDiGirolamo avatar Sep 06 '15 17:09 AnthonyDiGirolamo

Hi, thanks for the great looking theme. I also am having problems on Mac OS X.

(require 'powerline) (require 'airline-themes) (load-theme 'airline-powerlineish)

The theme both takes long to load and while sometimes, while editing, theres a few seconds delay where the editor is completely unresponsive. It works perfectly fine both on Windows and Linux.

joncol avatar Sep 26 '15 20:09 joncol

I wonder if this is caused by this missing function: curr-dir-git-branch-string

I noticed it's not present when I loaded eterm.

rymndhng avatar Oct 05 '15 17:10 rymndhng

Wow you're right @rymndhng I completely left that function out. I added it now and tagged the fix as version 1.3, see if that helps.

AnthonyDiGirolamo avatar Dec 12 '15 03:12 AnthonyDiGirolamo

Try running the Emacs Startup Profiler in gui emacs and see what's slowing it down: https://melpa.org/#/esup

AnthonyDiGirolamo avatar Dec 14 '15 12:12 AnthonyDiGirolamo

I'm having the same problem. Esup says that the total startup time is only 0.4 seconds, when it is more like 5 seconds.

ifonefox avatar Feb 03 '16 20:02 ifonefox

I'm really not sure what's going on. I can't reproduce this with "emacs -Q" on OS X using either of the builds at http://emacsformacosx.com/ and https://github.com/railwaycat/mirror-emacs-mac

I have noticed that if emacs tries to display any emoji in files it hangs for a few seconds the first time then doesn't do it again for the remainder of the session. Not sure if that is related.

AnthonyDiGirolamo avatar Feb 03 '16 23:02 AnthonyDiGirolamo

Hey @AnthonyDiGirolamo any updates on this one? This thread is pretty old but I'm also having this issue, this is what I have in my init.el:

(use-package powerline
  :ensure t)

(use-package airline-themes
  :ensure t
  :config
  (load-theme 'airline-molokai))

If I change the theme to the default powerline theme and restart emacs startup time goes back to normal (3-4s less). I'm using emacs 25.1 from http://emacsformacosx.com/ and airline-themes 20170623.958 from melpa.

gonz avatar Jul 10 '17 18:07 gonz

try use benchmark-init to analzey startup time.. it may not be the reason of airline.

ethanyu336 avatar Jul 13 '17 17:07 ethanyu336

I just ran a benchmark and it doesn't show high require times for airline-themes not sure how benchmark-init works... but if I just run (powerline-default-theme) on my init.el (fast startup) and then I eval (load-theme 'airline-molokai) it takes a while: 4-5s to actually load on a pretty fast machine.

gonz avatar Jul 13 '17 20:07 gonz

Still repro in 2019, any update?

kgfly avatar Aug 03 '19 04:08 kgfly