About starting and initializing an Emacs session
Questions tagged [start-up]
188 questions
45
votes
3 answers
What can I do to speed up my start-up?
What are some basic things I could do to reduce the start-up time?
Is there anything in particular I should pay attention to, for that matter?
Note: Startup time can be mitigated by starting Emacs less often (once per session) and opening files in…

caisah
- 4,056
- 1
- 23
- 43
35
votes
2 answers
package-initialize: wrong type argument : arrayp , nil
while going through the emacs as a c/c++ editor , I came across the following lines of code to include in my ~/.emacs file, to connect to
melpa archives for package installation
(require 'package)
(add-to-list 'package-archives '("melpa" .…

lazarus
- 453
- 1
- 4
- 8
22
votes
2 answers
How can I improve startup time despite many packages?
TL;DR I have such a huge amount of packages that it's hurting my startup time. If you don't believe that could be the case, read on.
My Emacs startup time is quite small. I don't use use-package, I just set tons of hooks and autoloads so that…

GDP2
- 1,340
- 9
- 25
22
votes
1 answer
How to start Emacs without the cmd.exe window (on MS Windows)?
It says emacs/bin/emacs.exe. If it's not necesarily useful, I'd like to stop it from starting with emacs. The extra window is messing me up a bit.

Evan Adler
- 399
- 3
- 4
21
votes
2 answers
Is there any downside to setting `gc-cons-threshold` very high and collecting garbage when idle?
I added the following two lines to the top of my init.el:
(setq gc-cons-threshold (eval-when-compile (* 1024 1024 1024)))
(run-with-idle-timer 2 t (lambda () (garbage-collect)))
That means that instead of collecting garbage every 800kb of…

Nova
- 1,059
- 9
- 21
20
votes
3 answers
replace splash screen with list of recentf
The splash screen is useful in the beginning, but now I want something more useful: I want to have list of recently opened files presented when starting emacs if there is no predefined file to open. Even better, if it can be the helm-recentf window…

biocyberman
- 962
- 7
- 17
14
votes
2 answers
Why does Emacs take longer to start on Windows than on Linux?
Configuration:
One system
OS Windows 10 as dual boot
OS Ubuntu 15.10 as dual boot
Emacs 25.0.1 with GUI
I have one dot-emacs file and everything in my .emacs.d folder (the packages also are located in .emacs.d). All of these files are located in…

ReneFroger
- 3,855
- 22
- 63
11
votes
1 answer
Emacs desktop-save-mode - only save desktop when previous desktop was fully restored
I have the following in my .emacs:
(desktop-save-mode 1)
(setq desktop-restore-eager 10)
(setq desktop-save t)
Often I have a lot of buffers open (100 or so), then this really helps - as emacs is loading buffers only when not beeing busy with…

Christian Herenz
- 365
- 2
- 14
11
votes
3 answers
How does Emacs manage to start instantaneously with many el-files?
As every Emacs'er will know, I'm currently suffering from my extensive dot-Emacs configuration. All my packages are within the containers of use-package, and I bytecompiled all of my .el-files.
Even with that, Emacs starts in 6.4 seconds, and then…

ReneFroger
- 3,855
- 22
- 63
8
votes
1 answer
How do I start a shell automatically after starting emacs
One of my main reasons for using Emacs is to get a powerful environment after sshing into a remote machine. The first thing I do after starting Emacs is to run M-x shell to get a command line. As it takes a little while for Emacs to start it would…

TooTone
- 401
- 4
- 11
8
votes
1 answer
require vs. package-initialize?
Ok, this is a noob question but I've digging into this enough that I think it's reasonable to ask :)
My question: In one's .emacs / init.el file, can one use require to load packages that were installed via the emacs package manager? If so,…

MikeTheTall
- 659
- 4
- 11
8
votes
4 answers
Speed up Emacs start-up time
I have seen this thread but my problem is an order of magnitude larger. Also, a newbie, I did not understand much of what was being discussed there. So, this new question.
I am running Emacs 25.2.2 on Kubuntu 17.10 on a low-range laptop computer…

deshmukh
- 1,852
- 13
- 29
8
votes
2 answers
How to disable lisp-interaction when starting Emacs?
When I open Emacs, the *scratch* buffer is in Lisp Interaction mode, but I don't want that. How can I make the buffer have a text mode instead of Lisp Interaction?

new Q Open Wid
- 185
- 1
- 12
7
votes
1 answer
Removing tool bar oddly slow
(tool-bar-mode 0) takes up 11% of my initialization time (about a third of a second). It's not that big of a deal; it's just strange. I've tried it on multiple computers. I've also tried disabling everything but that line in my .emacs. It always…

Matthew Piziak
- 5,958
- 3
- 29
- 77
7
votes
3 answers
Handle stale desktop lock files after emacs/system crash
If Emacs or the system crashes when desktop-save-mode is active, Emacs leaves a stale desktop lock file. The next time the desktop is loaded (from another Emacs process ID), loading is interrupted with a question:
Warning: desktop file appears to…

Håkon Hægland
- 3,608
- 1
- 20
- 51