The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
3
votes
0answers
402 views

Startup Emacs Daemon With Elfeed (RSS Feed Reader) Buffer

What I would like to accomplish is this: Allow emacs daemon to start with my start up applications like normal When I open an emacs frame I would like only the first one to start with my rss news ...
29
votes
2answers
8k views

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) (...
13
votes
2answers
4k views

Why does Emacs take longer to start on Windows than on Linux?

Configuration: One system (same hardware) OS Windows 10 OS Ubuntu 15.10 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....
7
votes
2answers
173 views

Why expression fails in init file, but works fine during session [duplicate]

I want to understand why an expression of the form (load-theme 'my-kewl-theme t) fails1 when run as the last expression in my init (~/.emacs) file, but works fine if I evaluate it as soon as soon as ...
10
votes
1answer
939 views

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 ...
4
votes
1answer
141 views

Is `loadup.el` hard-coded, such that `-nl` (aka --no-loadup) is futile?

I would like to create my own startup.el, and it seems that loadup.el is what causes startup to do its thing -- i.e., (load "startup"). I see that an option for starting Emacs is -nl or --no-loadup; ...
0
votes
0answers
61 views

Starting Emacs on OSX stuck

When lots of application running, emacs doesn't start. Icon appears on dock but application doesn't show up. If I quit some apps and retry to start emacs, it works flawlessly. Is the any chance to ...
0
votes
0answers
80 views

Stop Emacs from adding all subdirs to default-directory

I'm having trouble stopping Emacs from loading all packages in my default-directory. When I call c-h v load-packages I get a listing of all subdirectories inside my elpa directory, which I want to ...
11
votes
3answers
392 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 ...
4
votes
1answer
2k 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 (...
3
votes
0answers
76 views

Emacs Trunk: How to prevent creation of home directories in `load-path`

In the Emacs Trunk build -- i.e., built --with-ns, I have the following entries that get added automatically to my load-path when launching without any user configuration: "." "./Applications" "./...
1
vote
2answers
2k views

Unable to link emacs.d directory

I moved .emacs.d folder from home directory to a folder called dot_files so that it will be easy to sync various dot files. From there I have linked it to home so that emacs can load that ...
3
votes
2answers
2k views

How to detect Windows XP vs Windows 7 in startup file?

Presently, I'm testing for windows like this in my startup for Emacs v23.1.1: (if (eq system-type 'windows-nt) (load-library "visual-basic-mode")) However, this is true for both Windows 7 and ...
17
votes
3answers
3k 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. ...
3
votes
1answer
1k 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 ...
6
votes
1answer
1k views

emacs command-line-default-directory variable is not set correctly

I'm using Emacs on Windows. I also have a VirtualBox VM that I connect to using plink. But then, when I use the eshell, and I do cd <some folder> it tells me No such directory found via CDPATH ...
3
votes
2answers
409 views

emacs -nw -q takes long time

emacs -nw -q or emacs -nw -Q takes more than 10 seconds to start in terminal, but the result of M-x emacs-init-time is 0.0 seconds, and the emacs takes shorter time (still more than 5s) than emacs -nw ...
1
vote
1answer
173 views

Switch to buffer conditional to no file having been specified in the command line?

On startup, I want to create an empty buffer and switch to it, but only if no file has been specified in the command line. The closest I have is (switch-to-buffer "untitled") at the end of init.el ...
0
votes
1answer
2k 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 ...
6
votes
1answer
224 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 ...
4
votes
2answers
82 views

Prevent TTY fallback when X fails

I frequently forget to start my X server before I fire up emacs. Obviously emacs will attempt to open an X window and fail. In older versions of emacs (I forget when this changed) the behavior was ...
8
votes
1answer
1k views

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 ...
2
votes
1answer
2k views

sr-speedbar width size options on start not working

By default, sr-speedbar seems to always want to take 50% of available window space. I'm trying to change it's default size to something smaller (like 40 px), but I can't seem to figure out how as ...
2
votes
2answers
1k views

How to load all .el files at start-up

Usually there are many .el files in the folders with the name lisp in the installation directory of Emacs. At start-up, Emacs doesn't load all these files, in consequence a command like M-x calendar-...
6
votes
1answer
2k 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 ...
40
votes
3answers
3k 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 ...