Skip to main content

Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
46 votes
3 answers
5k views

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 ...
caisah's user avatar
  • 4,096
11 votes
3 answers
682 views

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 ...
ReneFroger's user avatar
  • 3,920
9 votes
1 answer
10k views

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 ...
MikeTheTall's user avatar
3 votes
3 answers
6k views

Customize startup screen text

I want to add a string to the startup screen. I found this question and customized the fancy-startup-text variable, like this (add-to-list 'fancy-startup-text '("\nYou are running a customized ...
Ista's user avatar
  • 1,198
5 votes
1 answer
2k views

How to open multiple files without automatically activating the "Buffer List" split?

Running emacs with multiple files automatically opens the "Buffer List" split-window. eg: emacs -Q *.txt Opens a split window, one which contains a list of buffers. How can multiple files be ...
ideasman42's user avatar
  • 9,025
3 votes
4 answers
2k views

How to replace the default contents of the scratch buffer with the contents of a file (if it exists)?

I would like emacs to check for a ~/emacs.d/scratch.txt and use it's contents instead of the default message when emacs starts. How can this be done?
ideasman42's user avatar
  • 9,025
3 votes
1 answer
6k views

How to auto-toggle NeoTree on startup?

I would like to have NeoTree automatically toggle-open upon Emacs start up. I have tried adding: (neotree-mode t) under my: (require 'neotree) line in ~/.spacemacs (and yes, I am using Spacemacs ...
Josh Pinto's user avatar
3 votes
3 answers
3k views

How to make size of Emacs frame persistent?

When I start Emacs (by clicking on a desktop icon), its frame is too big for the screen, so the mode-line/mini-buffer area is not visible. It's not difficult to resize and reposition the frame, but ...
kjo's user avatar
  • 3,287
23 votes
1 answer
9k views

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's user avatar
20 votes
3 answers
5k views

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. ...
biocyberman's user avatar
14 votes
2 answers
6k views

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 ...
ReneFroger's user avatar
  • 3,920
7 votes
1 answer
422 views

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 ...
Matthew Piziak's user avatar
7 votes
3 answers
3k views

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 ...
Håkon Hægland's user avatar
6 votes
1 answer
3k views

"Unable to activate package" when starting Emacs

I get the following message when starting Emacs: Warning (emacs): Unable to activate package `elpy'. Required package `highlight-indentation-0.5.0' is unavailable Warning (emacs): Unable to activate ...
Amelio Vazquez-Reina's user avatar
6 votes
1 answer
3k views

Is it possible to disable the startup screen only when emacs opens a file?

Whenever I issue $ emacs, I am greeted by the startup screen. I like this. However, when I issue $ emacs foo.txt, emacs opens foo.txt and the startup screen in a split screen. I do not like this. Is ...
Brian Fitzpatrick's user avatar
6 votes
1 answer
6k views

Programming of Initial-buffer-choice

I need to make a function that will choose an org mode file if emacs was called with no arguments, and basically go about its way otherwise. So far I have (defun personaltodo () (if (= 1 (...
Bronze's user avatar
  • 113
4 votes
2 answers
1k views

Keep spacemacs from retrieving package archives at startup

I'm trying to figure out a way to speed up my spacemacs start time. The main offender at the moment is the refreshing of package archives at start. I was hoping that setting dotspacemacs-check-for-...
flooose's user avatar
  • 521
4 votes
2 answers
2k views

Portable Emacs: Remapping user-emacs-directory

The Problem I want to install Emacs on a USB Flash Drive in a portable fashion, that is, Emacs should be able to be run from the UFD, once plugged on a device, without predefined paths to its ...
antonio's user avatar
  • 1,822
3 votes
1 answer
305 views

Set startup screen to *About GNU Emacs* page

When I start Emacs, it shows me the GNU Emacs buffer. I want to set it to the page one gets with the C-h C-a command with the nice Emacs logo instead. How can I do this.
user18630's user avatar
3 votes
2 answers
2k views

How can I override initial-buffer-choice if I specify a filename at command line?

In my .emacs file I have the following line in custom-set-variables: '(initial-buffer-choice "~/Programming/C++/<some project I'm working on>") This works great. However, I use emacs to edit ...
user avatar
2 votes
3 answers
927 views

Hide emacs frame until loaded

In my init.el file, I have some code to hide the Emacs toolbar: ;;; Hide the toolbar (tool-bar-mode -1) But when I load Emacs, it first enables the toolbar, and then quickly hides it, after it reads ...
Adam's user avatar
  • 1,937
2 votes
2 answers
2k views

Why doesn't set-background-color work in my init file?

I have an init file for Emacs located at /home/username/.emacs.d/init.el and it has the command (set-background-color "honeydew"). However, when I open Emacs the color has obviously not changed from ...
Adam G's user avatar
  • 21
2 votes
1 answer
2k views

How can the start up log of Spacemac be viewed?

When I start Spacemacs there is a message about some faults on my setup which scroll past quickly before I can view them. Is there some file or some buffer that holds them for review?
vfclists's user avatar
  • 1,445
1 vote
1 answer
201 views

Can I open emacs in nw mode with the scratch buffer?

When starting emacs from the shell command line, if you pass the "dot", it opened emacs with a 'dired' of the current directory. But can I do this? emacs '*scratch*' so emacs opens with the focus ...
american-ninja-warrior's user avatar
1 vote
1 answer
139 views

Loading addition org files along with default scratch buffer

I do a lot of my programming in Haskell and Python. I've started maintaining a personal cheat-sheet for each of these languages for common constructs and tasks I often come across. Hence whenever I ...
smilingbuddha's user avatar
0 votes
1 answer
529 views

Weird behavior: GUI won't start, but terminal emacs will

As I said in the title, I'm having a problem with starting Emacs, whenever I try to start it with rofi, nothing happens, and when I try and start with terminal (using emacs), it returns "Args out of ...
Lucas Liseth's user avatar
0 votes
2 answers
667 views

Kill initial buffers

I want to kill some buffers created by default, such as the GNU Emacs, but putting: (kill-buffer "*GNU Emacs*") On the .emacs doesn't work. I guess this code is called before the initial buffers are ...
Danilo M. Oliveira's user avatar