Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [start-up]

About starting and initializing an Emacs session

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

use-package can't load package at startup

When I start Emacs I get the error message Error (use-package): Cannot load counsel But when I open init.el in a buffer and run eval-buffer everything works fine. What I'm doing wrong? My Emacs ...
1
vote
1answer
266 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 ...
0
votes
1answer
28 views

Multiple initial buffers in different windows

I have Emacs set up to open an initial org mode buffer on startup by (setq initial-buffer-choice "~/Directory/Subdirectory/inital_buffer1.org") Ideally on start up, I would like to open 2 buffers in ...
1
vote
1answer
80 views

Do not open “GNU Emacs” buffer when launching Emacs [duplicate]

"GNU Emacs" buffer is opened automatically when launching Emacs(both terminal and GUI), and I have to kill that buffer everytime. It's boring. How to turn "GNU Emacs" buffer off autimatically when ...
1
vote
1answer
40 views

starting emacs from the commandline and setting line wrap to 60 - howto?

I'm new with Emacs and come from Joe. There I started editing mail from the command line by joe -rmargin 60 because I don't want to generally set the right margin to 60. I can't find a similar ...
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 ...
2
votes
2answers
253 views

How to open multiple files in multiple windows at startup

In earlier versions of emacs one could use emacs -nw file1 file2 file3 and see three files (and no buffer list) at startup. For recent versions this no longer works. Is it possible to add some code to ...
0
votes
1answer
81 views

emacs (v24.3.1): command line '--' before the file name

I have a RHEL 7 box, and I've installed emacs onto it (v24.3.1). This version of Emacs seems to be broken. You used to be able to edit by entering a command like this: emacs -- somefilename.txt and ...
1
vote
0answers
55 views

Emacs slow when launching GUI

I have a weird problem. When I launch emacs GUI by double clicking the icon, or using open -a emacs in the terminal, or calling the application from alfred/spotlight it takes 4-8 seconds to launch. ...
2
votes
1answer
38 views

How to launch term at startup in Emacs?

I need to have Emacs open a terminal at start-up automatically (in order to use Fish in the terminal and use Emacs to for example search the Fish output). Normally I do this with 'M-x term'. Is ...
0
votes
1answer
56 views

Launch doom-emacs with options of main and #1

Upon launching doom-emacs, it displays What does the options main and #1 mean? It toggle [2] as default, how could I toggle 1
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. ...
0
votes
0answers
14 views

When I click on a file on the spacemacs start screen, it automatically enters a newline

This only happens when I open a file with a mouseclick on the spacemacs start-screen. Very odd, it does not even work when I press enter instead or when I open the file in another way. The reason ...
2
votes
1answer
129 views

How to init emacs with an option (such as `--debug-init`)

This might be a very silly question, and that's maybe why there's no answer on the internet. I'm using Windows 10. And I tried to click on properties, and then change the ending of the file's name ...
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....
2
votes
1answer
989 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?
1
vote
1answer
46 views

desktop-save-mode: prevent emacs from showing each buffer on start-up

If you use desktop-save-mode, and have several hundred buffers saved, when you start emacs, emacs cycles through these buffers and shows each of them for a split second. Can this be prevented?
1
vote
1answer
62 views

Installation of Org-ref slows down start-up

I am super new to Emacs. I just followed the installation section of org-ref. I managed to get a simple citation working by adding bibliographystyle:plain to the file. This is one of the solution one ...
5
votes
2answers
74 views

Incremental Search after opening file

Being fairly new to GNU Emacs and intend to use it as a replacement to vi/vim where possible, I came across an obstacle, I seem not be able to overcome. In vim (similar to less) you can provide a ...
4
votes
1answer
529 views

Emacs Mac OSX after upgrade to 26.2 launches only in `-nw` mode

I upgraded to Emacs 26.2 on my Mac OSX Sierra instance via "brew". After the upgrade, the emacs command will not open a new "GUI window", i.e. it runs as if I passed the -nw args or ran it from an ...
1
vote
1answer
42 views

How do I specify a daemon to start with alternate emacs version with emacsclient

I have found this script from here #!/usr/bin/env zsh # Checks if there's a frame open emacsclient -n -e “(if (> (length (frame-list)) 1) ‘t)” 2> /dev/null | grep t &> /dev/null if [ “$?”...
0
votes
1answer
34 views

How input all params from console without interactively?

Here snippet of my elips function: (defun log-report (filePath uniqueText) "Create log4j record report from any log4j (e.g.traceXXX.log) files. Log4j level MUST be in square brackets. e.g.: [DEBUG] ...
2
votes
1answer
199 views

how to show latest xkcd in dashboard on startup?

Dashboard can display images on startup. I was wondering how would I give it latest xkcd comic from xkcd-mode?
6
votes
1answer
406 views

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?
3
votes
1answer
194 views

How to prevent Emacs from creating two windows on startup Windows 10?

When I start Emacs not from the command line on Windows 10 it creates two windows, not one. Is there any way to make the blue window go away? I usually needs 4-5 instances of Emacs running so it ...
0
votes
2answers
205 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
177 views

What causes Emacs to maximize on startup?

I have just move to MS Windows 10, and installed emacs. Emacs starts with the frame maximized. I don't want that. I tried the -geometry option. First an initial frame is evident. Then a smaller ...
3
votes
2answers
322 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-...
3
votes
1answer
591 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 ...
0
votes
1answer
141 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 ...
16
votes
1answer
2k views

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

Unable to initialize org agenda with log on Emacs startup

I have been able to initialize org agenda on Emacs startup with: (add-hook 'emacs-startup-hook 'org-agenda-list) However, now I want to initialize org agenda directly with log mode, and I haven't ...
2
votes
0answers
257 views

How to diagnose emacs hanging and 100% cpu on startup?

How can I diagnose this issue? I've tried using strace and I see the following that seems to be stuck in a loop: recvfrom(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., ...
2
votes
0answers
819 views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
5
votes
2answers
2k views

How to lazy load init files to speedup Emacs startup?

My ~/.emacs.d/init.el file looks like this: (package-initialize) (require 'init-my-emacs-settings) (require 'init-my-emacs-performance) (require 'init-my-emacs-font) (require 'init-my-emacs-color-...
19
votes
2answers
2k views

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 ...
1
vote
2answers
118 views

Emacs directory is not readable on Ubuntu

When I start Emacs 25 on Ubuntu, I get this message: cannot open load file permission non accordée , mode-util With emacs25 -debug I've got: Warning: Lisp directory '/usr/share/emacs/25.2/lisp': ...
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 ...
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 ...
6
votes
4answers
2k views

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

Symbol’s value as variable is void: Info-default-directory-list

I am getting this error when I start my emacs. It happens even if I comment out my init.el but not when I use the --no-init-file option. Any thoughts on how to debug this issue? If this is a an ...
2
votes
1answer
65 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.
2
votes
1answer
408 views

Where is the file for the Fancy Startup Screen

I'm trying to find where the contents of the *GNU Emacs* buffer, aka fancy startup screen, are located on my hard drive. When I M-x eval-expression buffer-file-name to find the file of the current ...
3
votes
3answers
397 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?
1
vote
0answers
56 views

How to detect if emacs starts with a file?

I would like to be able to implement the following logic. (if (developer-opened-file-with-emacs) (do nothing, get on with working as fast as possible) (load fancy splash screen that may take ...
0
votes
1answer
93 views

Confusing defcustom usage in info.el

I was trying to read the info.el code when I ran across this strange use of defcustom: ;; This is a defcustom largely so that we can get the benefit ;; of custom-initialize-delay. Perhaps it would ...
0
votes
0answers
52 views

Running a single Emacs instance

I'd like to set in my dot-emacs a function to detect if an Emacs instance is already running, possibly exiting Emacs informing user. To do this I should query the OS for running processes. However (...
0
votes
2answers
405 views

pdf-tools-install takes a long time on startup

I've installed pdf-tools through MELPA, and it works like a charm. Funnily, and as is documented in the readme, the command pdf-tools-install needs to be run each time if you want pdf-tools to be ...