all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: torys.anderson@gmail.com (Tory S. Anderson)
To: emacs list <help-gnu-emacs@gnu.org>
Subject: Helm slows frame startup (was Re: Slow frame-startup)
Date: Sun, 05 Oct 2014 11:35:47 -0400	[thread overview]
Message-ID: <87y4sujzqk.fsf@gmail.com> (raw)
In-Reply-To: <87tx3pnegd.fsf@gmail.com> (Tory S. Anderson's message of "Tue, 30 Sep 2014 14:36:02 -0400")

Well, it's verified for me; running emacs client, new frames (via `C-x 5 2` or any other new-frame method) take 2-3 times longer to start if Helm is enabled. Does anyone know a fix? My .emacs loads a helm-config.el containing the following: 

;;;;
;; HELM
(global-set-key (kbd "C-c h") 'helm-command-prefix)
(require 'helm)
(require 'helm-config)
;(require 'helm-eshell)
(require 'helm-files)
(require 'helm-grep)

;; The default "C-x c" is quite close to "C-x C-c", which quits Emacs.
;; Changed to "C-c h". Note: We must set "C-c h" globally, because we
;; cannot change `helm-command-prefix-key' once `helm-config' is loaded.
(global-unset-key (kbd "C-x c"))
(global-set-key (kbd "M-x") 'helm-M-x)
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
(global-set-key (kbd "C-x C-f") 'helm-find-files)
(global-set-key (kbd "C-x b") 'helm-mini)

(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebihnd tab to do persistent action
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z")  'helm-select-action) ; list actions using C-z

(define-key helm-grep-mode-map (kbd "<return>")  'helm-grep-mode-jump-other-window)
(define-key helm-grep-mode-map (kbd "n")  'helm-grep-mode-jump-other-window-forward)
(define-key helm-grep-mode-map (kbd "p")  'helm-grep-mode-jump-other-window-backward)

(when (executable-find "curl")
  (setq helm-google-suggest-use-curl-p t))

(setq helm-quick-update                     t ; do not display invisible candidates
      helm-split-window-in-side-p           t ; open helm buffer inside current window, not occupy whole other window
      helm-buffers-fuzzy-matching           t ; fuzzy matching buffer names when non--nil
      helm-move-to-line-cycle-in-source     t ; move to end or beginning of source when reaching top or bottom of source.
      helm-ff-search-library-in-sexp        t ; search for library in `require' and `declare-function' sexp.
      helm-scroll-amount                    8 ; scroll 8 lines other window using M-<next>/M-<prior>
      helm-ff-file-name-history-use-recentf t)

(helm-mode 1)

(add-to-list 'winner-boring-buffers "*helm M-x*")
(add-to-list 'winner-boring-buffers "*helm mini*")
(add-to-list 'winner-boring-buffers "*Helm Completions*")
(add-to-list 'winner-boring-buffers "*Helm Find Files*")
(add-to-list 'winner-boring-buffers "*helm mu*")
(add-to-list 'winner-boring-buffers "*helm mu contacts*")
(add-to-list 'winner-boring-buffers "*helm-mode-describe-variable*")
(add-to-list 'winner-boring-buffers "*helm-mode-describe-function*")
;;;;

torys.anderson@gmail.com (Tory S. Anderson) writes:

> I use emacs-client, and new frames often. Lately, however, I've noticed that it can take up to 5 seconds for a new frame to start up. There seems to be work going in to loading Helm completion each time, so I've disabled helm for a while to see how the performance is. But it has me thinking; what other things (say, in your .emacs file) can contribute to slow frame start-ups with an already-running emacs/emacs-server instance? 



  reply	other threads:[~2014-10-05 15:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 18:36 Slow frame-startup Tory S. Anderson
2014-10-05 15:35 ` Tory S. Anderson [this message]
2014-10-06 12:52   ` Helm slows frame startup (was Re: Slow frame-startup) Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4sujzqk.fsf@gmail.com \
    --to=torys.anderson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.