Questions tagged [start-up]
About starting and initializing an Emacs session
181
questions
0
votes
0
answers
59
views
Prevent emacs from calling melpa/updating on startup
This is already the 2nd time I can't start emacs as one single package on a server can't be found.
My current configuration works fine and I'd rather have a reliable system than one that is always up ...
2
votes
1
answer
45
views
FILE(s) Passed by Shell to Emacs to Visit
The FILE mentioned in the title, is what in
$ emacs FILE
or
$ emacs -file FILE
or something else similar.
How do I know whether there’s a FILE / FILEs set for Emacs to visit at startup?
If there’...
0
votes
0
answers
14
views
How to debug "Don’t know how to make a localized variable an alias" errors at startup?
Background: my company provides (confidential) elisp libraries for editing source code in several languages, including TypeScript. I added some lines to load these libraries to my init.el:
(require '...
0
votes
0
answers
80
views
Emacs 28.2 does not open from finder/dock on OS X Monterey
I downloaded Emacs 28.2 (released 2022-09-12) for OS X from here. When I try to open it from Spotlight search or the dock, it sometimes bounces, sometimes hangs, but never opens.
I can open it from ...
2
votes
1
answer
174
views
How do I hide the welcome screen if and only if one or more files are opened by emacs upon startup?
Right now, if I do "emacs foo1 foo2" emacs will open with foo1 and the welcome screen showing in two windows splitting the frame vertically. Instead, I want to be shown foo1 and foo2. ...
1
vote
0
answers
43
views
How to ignore (for recentf) files opened automatically during start-up
Some modes, on Emacs start-up, load a lot of files automatically. Example: Org-mode refreshes its agenda by reading every file configured to contain agenda items.
But these "read the file ...
1
vote
2
answers
53
views
What variable holds filenames specified on Emacs command line?
What variable can Emacs Lisp access, to know the filenames specified on the command line that was used to invoke this Emacs session?
The general command-line-args contains the remaining command-line ...
0
votes
0
answers
37
views
lsp-pyright defer init until a .py file is open
Hey guys i'm improving my startup, Emacs version 28.2.
I did a benchmark on init and I noticed that the thing that takes most of the time is lsp-pyright. That initializes lsp-mode.
But I don't ...
1
vote
2
answers
22
views
Load default.el configured by libraries but not the user's init.el
As far as I understand libraries can define a default.el file that will be loaded on startup. I would like to run librarie's default.el, but not the init file of the user (e.g. in .emacs/init.el). Is ...
0
votes
0
answers
33
views
Opening Emacs and all keypresses go to terminal, not emacs
My keyboard input is going to terminal, even when Emacs is focused.
Emacs does respond to mouse input.
Both Emacs and terminal are responsive.
Does anyone know how I can solve this issue? Is there ...
1
vote
1
answer
89
views
Setting position of initial frame from user defined values
I would like to set the frame position of the initial frame, by letting the user position the frame where he wants. I can then save the cons cell in a variable which will then be used for set-frame-...
0
votes
1
answer
44
views
Why is debug-on-error always enabled at startup?
Whenever I start up emacs, debug-on-error is enabled. I can't figure out why, there's nowhere where I explicitly enable it. Is there any way for me to figure out where it's coming from?
1
vote
1
answer
88
views
How can I make emacs load `environment modules`?
I keep packages organized on my laptop using environment modules (http://modules.sourceforge.net/).
Hence if I need a particular version of python, I can do
module load python39 etc.
Now if I first ...
0
votes
1
answer
52
views
change starting buffer from *scratch* to recentf-open-files
I like the buffer that is opened when type M-x recentf-open-files. I'd love to have it as my starting buffer instead of scratch, but I don't know how.
I've tried adding '(initial-buffer-choice '...
2
votes
1
answer
42
views
How to NOT connect to daemon?
When invoking emacs, is there a way to specify that it should not connect to any emacs daemon, but instead should run as an isolated instance?
1
vote
1
answer
38
views
Enabling --debug-init from within .emacs
Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
0
votes
1
answer
191
views
The latest Emacs initialization hook
I am currently running Emacs as a desktop with EXWM.
And I am trying to run some apps on startup to see them in a EXWM's systemtray:
(defun run-auto-start ()
(start-process-shell-command "...
0
votes
2
answers
42
views
How to open a startup file in view-mode?
I configured Emacs (28.1) to open an index file (index.org) at startup. Now I would like this file to be opened in view-mode. I tried
(setq initial-buffer-choice "~/PATH/index.org")
(view-...
0
votes
1
answer
54
views
Trying to open Diary on startup but Emacs is launching in split screen, how can I stop it
I have (diary) setup in my .emacs file so that it will launch diary on launch but it always launches in horizontal split screen with fancy diary mode on bottom and Scratch on top. I've inhibited the ...
1
vote
1
answer
198
views
Slow start-up in MS Windows and relation to the Windows registry
I am using Doom in MS Windows with Emacs 27.2. I am experiencing some very slow start-up times (I included the output of benchmark-init/show-duration-tree at the end).
Also, the first actions I ...
0
votes
0
answers
99
views
Mac terminal nw user: how do I start emacs in gui mode? My /Application folder of Mac doesn't have an emacs icon
how do I start emacs in gui mode? My /Application folder of Mac doesn't have an emacs icon
I only need gui mode maybe a week, say when editing a html document with inline images.
my-silica $ which ...
0
votes
2
answers
81
views
How to use `initial-scratch-message` variable to display mutliple status informations after start
I want to use the scratch buffer to display some status informations after starting emacs. I read I can use initial-scratch-message variable for this.
But I do not know how to set it up.
Here you see ...
0
votes
1
answer
41
views
How can I remove more libs to reduce loading at startup?
When I view the number of commands or functions through M-x I notice so many that I never use. However I also didn't load them explicitly in my init.el either. I do use use-package and have ...
0
votes
2
answers
837
views
Elpa + Melpa Certificate information issue at startup
I hadn't used Emacs for a few weeks and when I started it up I discovered issues with certificate information for elpa, melpa and orgmode. When I launch Emacs I get the following message:
The TLS ...
0
votes
0
answers
21
views
Emacs Not Running When I Try to Open a File (Windows)
I'm trying to upgrade my Emacs distribution from 25 to 27 (aspell no longer works... I use Emacs for org mode and LaTeX).
When I select runemacs.exe, emacs starts just fine. It uses my init file. I ...
0
votes
1
answer
76
views
Why not store all .el/.elc Elpa files inside the same directory to speed up Emacs startup?
Would it not be possible to modify Emacs package system to store all Emacs Lisp files installed from Elpa-compliant packages inside the same directory?
That would dramatically reduce the number of ...
1
vote
1
answer
373
views
Why does setting use-package-always-ensure cause Emacs to contact package repositories at startup?
I have the following in my init.el:
(setq use-package-always-ensure t)
because I want packages referenced by use-package to be downloaded automatically if I don't have them.
When I enable this ...
1
vote
0
answers
15
views
Release terminal filestreams on start
I want emacs to release (instead of grabbing) the parent terminal when started through the command line. Better if it is possible to send error messages to some temporary file.
By that I mean ...
1
vote
1
answer
89
views
What is the difference between emacs -Q -u [my-user] and emacs -Q -l [my-init-file.el]
I have all my emacs config in .emacs.d/init.el. The first command in that file is:
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
When I ...
0
votes
2
answers
311
views
How to make GNU Emacs start automatically right after booting and start with having much used files in buffers?
When I switch on my computer, 1st things I do:
Open GNU Emacs,
C-x C-f [file name A],
Enter,
C-x C-f [file name B],
Enter,
C-x b,
Enter - in doing so going back to buffer of file A -
C-x s,
es - ...
2
votes
1
answer
88
views
Emacs from an alias/function
uname -a Linux antixbox 4.9.235-antix.1-amd64-smp #1 SMP PREEMPT Mon
Sep 14 19:26:52 EEST 2020 x86_64 GNU/Linux
emacs --version GNU Emacs 27.1
echo $SHELL /usr/bin/zsh
I'm trying to get the ...
0
votes
1
answer
177
views
Start emacs with Global TODO list along with default org file
How can I open the global TODO list along side my default Org file.
Even with Desktop Save mode is on, whenever I open Emacs, only the org file reopens, and not the buffer with the global TODO list.
1
vote
1
answer
99
views
where is emacs saving files to open after launch?
I am using Spacemacs but I think this shouldn't matter for this question.
For some reason I am not able to find the place where Emacs is storing the files to reopen after launch.
I've greped for a ...
5
votes
1
answer
81
views
Is there an efficient way to tell which parts of my startup of Emacs take the longest to load?
I have been trying to make the start-up times better. Almost all of my init.el is broken into use-package declarations like this:
(use-package x ...)
(use-package y ...)
(use-package z ...)
I want to ...
0
votes
2
answers
120
views
How to remove second row of menu entries (or is it a toolbar)?
I have installed OpenSuse Tumbleweed and later Emacs.
If I start Emacs from the shell,
$ emacs -Q
I have a double row of menu entries
File - Edit - Options - ... - Help
New File - Open - Open ...
0
votes
1
answer
196
views
Persist variables (and maybe input history) across restarts [duplicate]
Sometimes I wish to persist the value of some variable when I quit emacs. For example, I would like to do this for compile-command.
Now, I guess I could find the hook that is run when Emacs quits (...
0
votes
1
answer
1k
views
Doom Emacs start-up problems
Running Doom Emacs 2.0.9 on Emacs 27.1.
In my init.el I have org-roam enabled like so:
:lang
(org +roam +journal)
In my config.el I also load org-habits, hide it in initial agenda view and set-up a ...
0
votes
1
answer
132
views
Doom Emacs -- Use a library
Running Doom Emacs 2.0.9 on Emacs 27.1.
A library org-inlinetask provides some functionality I need.
I can SPC h P org-inlinetask to open the library. Then I can SPC c e to evaluate buffer. This makes ...
1
vote
1
answer
461
views
Start emacs from the command line with remote ssh file open
How to start Emacs from the command line with and open file trough ssh?
What I usually do is first open Emacs and do:
C-X C-F /ssh:my_remote_server:/file.txt RET
How can I directly open the file from ...
0
votes
0
answers
87
views
How to run a keyboard macro (saved in my init.el) automatically when Emacs starts up?
I have saved a keyboard macro in my init.el file as follows
(fset 'remember-notes-my-macro
(lambda (&optional arg)
"Keyboard macro."
(interactive "p")
(kmacro-...
0
votes
1
answer
170
views
Emacs transparent after fresh install
Complete emacs beginner here. Just installed emacs in my Manjaro (awesomewm edition) machine using pacman.
The emacs window is almost completely transparent, I can't read anything. If started from a ...
1
vote
0
answers
167
views
Cannot figure out why vc-git.elc is always loaded on startup
This is more a curiosity, than a necessity.
I'm playing around with startup times, and to have something to compare with, I wanted to see how fast emacs could start up pure.
Running emacs -Q, emacs-...
0
votes
0
answers
225
views
Emacs cannot start from spotlight, "Method 'zsh' is not known"
I just buy a new macbook and I want to move my old working env to it. I used emacs-plus@27.0.91 which was installed by homebrew:
d12frosted/emacs-plus/emacs-plus@27: stable 27.0.91, HEAD
/usr/local/...
1
vote
0
answers
154
views
Start Emacs with gdb with a different main source file
I often run Gdb in a dedicated Emacs session. I have code to run gdb when Emacs start and set up Many-Windows mode.
For one particular project, there are many programs, all written in C, that share a ...
1
vote
1
answer
1k
views
Launch emacs in eww mode, display local .html file at startup
I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina.
I have a twist on a common request.
I had the idea to customize the emacs startup screen, but I see those options are ...
2
votes
2
answers
3k
views
Long Emacs start-up time (20~60s) on Windows 10
I have a working setup of emacs on Windows 10 that I like so far. However, I find that emacs start-up takes very long. It can be anywhere from 20s to 60s. I tried installing the benchmark-init package ...
1
vote
1
answer
73
views
Does `use-package` reduce startup time? If so, how?
My understanding of Emacs's package management is that Emacs automatically loads all installed packages.
use-package itself is a package, which only becomes usable after (package-initialize), at ...
2
votes
3
answers
451
views
How to configure emacs to start in the middle of the screen, and not in the top left corner?
Currently have a GUI version of GNU Emacs v.26.3 (on MacOS Catalina, also have a similar version on Ubuntu 16.04), and because I'm just getting started with the editor, I have this question: how do I ...
0
votes
1
answer
68
views
Linux command line to launch gnuemacs
I would like to launch Emacs by typing a command line in the terminal in Ubuntu linux. I want Emacs to open file a.txt in one frame and another file b.txt in another frame.
I tried the command *emacs ...
2
votes
2
answers
1k
views
Is there a command for opening emacs in shell mode?
Suppose I want to open emacs with a file and shell mode together. If there were two files I would do emacs file1 file2 and emacs opens them both. Is there a command to do this with emacs file [shell]?