Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
4
votes
2answers
1k 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 ...
4
votes
3answers
1k views

Is it possible to install emacs 25.1 and emacs 24 on the same machine?

I currently have emacs 24.5.1 running on OSx el capitan. Since the first RC of emacs 25.1 released a few days ago, I am very curious to try it out. Can I have both versions installed on the same ...
2
votes
2answers
5k views

emacs does not start - how to debug?

After using emacs routinely for a long time, today I suddenly have problems starting emacs: When I type emacs in a terminal window, nothing at all happens, emacs seems to be running, but does not ...
0
votes
0answers
136 views

How can I make the initial frame invisible?

Using the following command line causes Emacs to briefly display the initial frame, then hide it: emacs -Q --eval "(setq initial-frame-alist '((visibility . nil)))" This is consistent with the ...
2
votes
3answers
548 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 ...
2
votes
2answers
84 views

Changing the file association of todoo or alternatively completely disable it

I am using emacs on a debian system and have installed emacs-goodies-el. One of the many things in there is todoo which registers itself in auto-mode-alist for all files ending in TODO. This ...
1
vote
1answer
797 views

Debug emacs hanging at startup

So I've been using my custom config for a while now and no problems whatsoever, recently however there's a lag while loading emacs. It hangs at loading /home/<user>/.emacs.d/git_config.el (...
1
vote
0answers
56 views

If I move frame during Emacs startup, it moves back at the end of startup

I have a fairly long startup for Emacs 24.4 on Microsoft Windows 7. I try to move the frame where I want it during startup, but it snaps back after all the startup code is done running. I don't appear ...
1
vote
2answers
241 views

Current directory of Emacs in batch mode

I run Emacs in batch mode to execute some scripting actions. I'd like to get paths of files relative to where Emacs got started in batch mode: (file-relative-name (buffer-file-name) directory-where-...
5
votes
1answer
74 views

What mix of customisations are required to have org files always open exactly as they were closed?

org-customize has a node for startup folded, with options no fold, fold, content, and show everything. There doesn't seem to be an option for "remember last folded state". For such a customisable ...
5
votes
2answers
255 views

How to load start up screen (*GNU Emacs*) f it hasn't already been created?

When you run Emacs in daemon mode and then connect to it with emacsclient it doesn't show the start screen (*GNU Emacs*) but instead puts you into the *scratch* buffer, which is normally fine. But if ...
1
vote
1answer
347 views

“smart” ansi-term on start-up?

I have the following line in my .init.el (ansi-term "/usr/bin/bash") , because I usually like to have a terminal running in my emacs. The problem is that sometimes I don't, for instance, when I just ...
0
votes
0answers
246 views

Troubleshooting a blank window

I've run into a bit of an issue that I'm having trouble resolving. I use quite a few packages, one of which is ESS. The latest update to ESS seems to run into issues when trying to install. All I ...
5
votes
1answer
285 views

How to configure emacs to show the file I was working on when I open emacs?

I have save-place and save-visited-files installed however whenever I start emacs first a directory list shows (result of another setting in .emacs), I close it and then a few message buffers show up ...
5
votes
2answers
1k views

How to show startup screen instead of scratch, when no file is opened?

Like a lot of people I think I activated inhibit-startup-screen because it’s ugly and tedious to always have your emacs horizontally split when you open a file with half taken by an useless startup ...
3
votes
1answer
3k 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 ...
3
votes
1answer
714 views

How to customize a lazy-loaded variable?

In Spacemacs, how can I customize a variable used in a layer that's loaded lazily? Specifically, I'm trying to use Zathura and Synctex with Spacemacs' Latex layer. I have the following code in my ...
16
votes
1answer
6k 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.
0
votes
1answer
701 views

Cryptic startup error messages

I just started out on emacs so this might have a really simple answer. I'm getting an error message on startup and have no idea what it means. The debug message doesn't help much either. What do ...
7
votes
1answer
796 views

What is the difference between `-Q` and `-q --no-init-file --nosplash`

I have started seeing some strange X related behaviour in emacs. I have not been able to pin it down. It goes away when I run emacs -Q, but is still present when running emacs -q --no-init-file --...
6
votes
1answer
112 views

How can one restore buffers on startup in correct order?

I use desktop-save-mode in order to restore buffers on startup. However, the buffer which is visible immediately after startup is *scratch*, *Messages*, .bbdb, etc. I am not interested in those. Is ...
2
votes
2answers
707 views

Error on reopening files from previous session via desktop-save-mode

I like my Emacs to reopen all previously opened files when I start it up. My setup is simple: ;; save desktop autosave sessions (setq desktop-dirname "~/" desktop-base-file-name ...
1
vote
1answer
407 views

Long pause during Emacs startup, prior to init file running [duplicate]

Inexperienced programmer here - When I open Emacs (24.5) on Mac Mavericks 10.9, I am getting a delay between the Emacs GUI opening and the init file being loaded. There is a white screen, which ...
1
vote
3answers
1k views

Org-mode does not load Latex previews at startup

In org-mode, Latex previews are not loaded at startup when using #+STARTUP: latexpreview. I've also tried customizing org-startup-with-latex-preview with no effect. Only way to preview latex fragment ...
2
votes
1answer
2k views

How to set `org-agenda-prefix-format` before org agenda starts?

I want to customize org-agenda-prefix-format before org agenda starts : (add-to-list 'org-agenda-prefix-format '(todo . " %b")) But if I put the previous line in my .emacs.d, Emacs will show me ...
2
votes
1answer
567 views

Turning off loading messages in Emacs minibuffer/GUI at startup

I would like to prevent Emacs from reporting on everyting that is being loaded at startup in the minibuffer. This is because it seems to pause when telling me which files are being loaded that I have ...
2
votes
1answer
3k views

How to activate python virtual environment in init file?

How would I activate a specific virtual environment in my init file? I know how to activate it manually, but I don't like to do it every time I start emacs. To activate it manually I used: pyvenv-...
3
votes
0answers
451 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 ...
32
votes
2answers
9k 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) (...
15
votes
2answers
5k 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 ...
7
votes
2answers
199 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 ...
11
votes
1answer
1k 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
197 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
65 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
92 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
491 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 ...
6
votes
1answer
3k 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
79 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" "./...
2
votes
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 ...
20
votes
3answers
4k 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
2answers
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 ...
7
votes
1answer
2k 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
491 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
201 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
2answers
3k 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 ...
7
votes
1answer
291 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
107 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
2k 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 ...