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
0
votes
3answers
69 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 ...
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
79 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
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. ...
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 ...
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
55 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
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 ...
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
527 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
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 ...
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
198 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?
3
votes
1answer
192 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
203 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 ...
2
votes
1answer
128 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 ...
2
votes
2answers
251 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
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 ...
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
118 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
814 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 ...
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 ...
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 ...
1
vote
1answer
265 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 ...
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
500 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
407 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 ...
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 ...
3
votes
3answers
396 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?
0
votes
1answer
92 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 (...
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 ...
6
votes
1answer
405 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?
0
votes
2answers
404 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 ...
3
votes
1answer
812 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 ...
3
votes
2answers
321 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-...
0
votes
0answers
321 views

Error when initializing Emacs

This is what I get when starting Emacs from terminal with emacs --debug-init. I don't know the reason why emacs suddenly started to not working. Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
1answer
415 views

Debugging emacs 24.5 slow startup (WSL)

I'm running emacs24-nox on Ubuntu trusty on Windows Linux Subsystem, and I'm trying to figure out why the startup time is slow. I've inspected the startup with strace and found two calls to poll that ...
3
votes
1answer
73 views

Was Emacs launched with a filename argument?

Suppose I want Emacs to be configured differently depending on whether or not it was launched with a filename as an argument. Is there a way I can deduce this as part of my init file? One way is to ...
2
votes
1answer
386 views

How do I start emacs with one horizontal split and one vertical split

Every time I start Emacs, I want two windows, side by side, and one terminal/shell window below them both, as shown here. Please help me with the necessary code to my init file.
1
vote
2answers
1k views

Emacs doesn't open a new frame

Emacs does not start in a new frame. If I'm in a terminal running Bash and enter $>emacs the editor is opened inside this terminal, and produces exactly the same behavior as $>emacs -nw. I have ...
2
votes
3answers
904 views

Replace welcome screen (aka “splash” screen) with calendar?

I want to replace the welcome screen with the calendar. I've tried adding (calendar) to my .emacs but it opens calendar in addition to the welcome screen not instead of it. EDIT: I'm trying what is ...
2
votes
2answers
235 views

Set an Elisp var on the command line and read it in the init file

I'm trying to set a variable at load-time: # emacs --eval '(defvar myvar t)' Now, in this session, if I C-h v myvar RET I get a nice t. But if I put (message "MYVAR: %s" myvar) in my init file, I ...
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 ...
1
vote
2answers
116 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': ...
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 ...