From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Using an org based init file slows down emacs startup by 50x..help needed :( Date: Sat, 10 Dec 2016 10:36:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114fc6c0ba6da1054349c2cd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFd9W-0000Q1-KK for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 03:37:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFd9T-0002FG-GI for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 03:37:06 -0500 Received: from mail-yw0-f170.google.com ([209.85.161.170]:36571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFd9T-0002FC-A2 for emacs-orgmode@gnu.org; Sat, 10 Dec 2016 03:37:03 -0500 Received: by mail-yw0-f170.google.com with SMTP id a10so31489886ywa.3 for ; Sat, 10 Dec 2016 00:37:03 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode --001a114fc6c0ba6da1054349c2cd Content-Type: text/plain; charset=UTF-8 Hi all So after a few months of frustration today i discovered the issue that's been bothering me for a long time..the REALLY slow emacs startup (sometimes 5 minutes or more). The cause is the org mode init file i use. what i currently have in my setup is A. this init.el: (require 'package) ;since we are using use-package-don't autoload anythings (setq package-enable-at-startup nil) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-list 'package-archives '("marmalade" . " https://marmalade-repo.org/packages/")) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) ;; org maybe suspect of hanging melpa, if you have hangs disable this first (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) ;; Initialize installed package (package-initialize) ;; Bootstrap `use-package' (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (org-babel-load-file (expand-file-name "~/.emacs.d/settings.org")) B. My config stored in settings.org which alot of lisp code (like 17,000 lines..yeah i like to tinker :)) Using this method i discovered that every time i make a small change to setting.org and restart emacs the setting.org gets tangled to settings.el and emacs takes nearly 5!!! minutes to start..yeah thats painful as you can imagine. BUT what i discovered today is that if i just stick my config chunks from setting.org (ie the tangled setting.el file) into init.el, emacs starts super fast each time, even when i change the init.el file! can anyone help me with this, i really would appreciate you guys help with this as its driving me mad :) thx alot in advance Z --001a114fc6c0ba6da1054349c2cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

So after a few months of frustra= tion today i discovered the issue that's been bothering me for a long t= ime..the REALLY slow emacs startup (sometimes 5 minutes or more).

The cause is the org mode init file i use. what i currently= have in my setup is=C2=A0

A. this init.el:
<= div>
(require 'package)
;since we are usin= g use-package-don't autoload anythings
(setq package-enab= le-at-startup nil)

(add-to-list 'package-archi= ves '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'pack= age-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("melpa" . "<= a href=3D"https://melpa.org/packages/">https://melpa.org/packages/"= ;))
;; org maybe suspect of hanging melpa, if you have hangs disa= ble this first
(add-to-list 'package-archives '("org= " . "http://orgmode.org/elpa= /"))
;; Initialize installed package
(package-= initialize) =C2=A0

;; Bootstrap `use-package'<= /div>
(unless (package-installed-p 'use-package)
(package-ref= resh-contents)
(package-install 'use-package))

(org-babel-load-file (expand-file-name "~/.emacs.d/settings.org"))


B. My config stored in sett= ings.org which alot =C2=A0of lisp code (like 17,000 lines..yeah i like = to tinker :))

Using this method i discovered that = every time i make a small change to setting.= org and restart emacs the setting.org gets tangled to settings.el and emacs takes nearly 5!!! minutes to start.= .yeah thats painful as you can imagine.

BUT what i= discovered today is that if i just stick my config chunks from setting.org (ie the tangled setting.el file) into i= nit.el, emacs starts super fast each time, even when i change the init.el f= ile!

can anyone help me with this, i really would = appreciate you guys help with this as its driving me mad :)

<= /div>
thx alot in advance

Z


--001a114fc6c0ba6da1054349c2cd--