Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 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 ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
0 votes
0 answers
40 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 ...
user avatar
0 votes
2 answers
56 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 ...
user avatar
  • 509
0 votes
1 answer
28 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 ...
user avatar
0 votes
2 answers
523 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 1
0 votes
1 answer
63 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 ...
user avatar
  • 621
0 votes
1 answer
210 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 ...
user avatar
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 ...
user avatar
  • 227
1 vote
1 answer
61 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 ...
user avatar
  • 113
0 votes
2 answers
189 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 - ...
user avatar
2 votes
1 answer
80 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 ...
user avatar
  • 21
0 votes
1 answer
90 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.
user avatar
  • 3
0 votes
1 answer
70 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 ...
user avatar
  • 387
5 votes
1 answer
64 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 ...
user avatar
  • 755
0 votes
2 answers
71 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 ...
user avatar
  • 534
0 votes
1 answer
102 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 (...
user avatar
  • 317
0 votes
1 answer
694 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 ...
user avatar
  • 1,668
0 votes
1 answer
88 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 ...
user avatar
  • 1,668
1 vote
1 answer
273 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 ...
user avatar
  • 133
0 votes
0 answers
60 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-...
user avatar
  • 135
0 votes
1 answer
119 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 ...
user avatar
  • 103
1 vote
0 answers
132 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-...
user avatar
  • 131
0 votes
0 answers
160 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/...
user avatar
  • 745
1 vote
0 answers
109 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 ...
user avatar
0 votes
1 answer
875 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 ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
  • 103
1 vote
1 answer
61 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 ...
user avatar
1 vote
1 answer
171 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 ...
user avatar
0 votes
1 answer
64 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 ...
user avatar
  • 193
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]?
user avatar
1 vote
2 answers
81 views

Emacs startup and the elisp environment

Can anyone tell me what is going on when Emacs starts up? As I understand, Emacs has a "base," a "foundation" of code written in C, but then supposedly a great Lisp "program" takes flight. And from ...
user avatar
  • 2,717
3 votes
1 answer
227 views

How to activate diff-mode from command line?

Git's editor config is set to launch emacs in no-window mode and to execute lisp function diff-mode: git config --global core.editor "emacs -nw -f diff-mode" However, when I execute git commit -v to ...
user avatar
2 votes
2 answers
508 views

Preload problem: Emacs as daemon in X

Background: I want to use emacs like tmux which can run as persistent session as well as shorten the time for me to start bringing up emacs when I want to (as inspired by these: Emacs and a Tmux ...
user avatar
  • 305
1 vote
0 answers
108 views

How can I stop Emacs from grabbing focus at startup?

I typically start GUI Emacs on macOS, https://bitbucket.org/mituharu/emacs-mac/overview, installed via Nix package manager, as part of a larger startup script on the terminal (iterm). While Emacs is ...
user avatar
  • 481
1 vote
1 answer
129 views

Can I open emacs in nw mode with the scratch buffer?

When starting emacs from the shell command line, if you pass the "dot", it opened emacs with a 'dired' of the current directory. But can I do this? emacs '*scratch*' so emacs opens with the focus ...
user avatar
0 votes
1 answer
51 views

Force function evaluation when setting variable value? [duplicate]

I have these functions defined in my early-init.el. I'm trying to change the location of where my backups are saved and keep getting a Wrong type argument stringp (djm/emacs-cache "backups/"). early-...
user avatar
  • 303
0 votes
3 answers
1k 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 ...
user avatar
0 votes
1 answer
367 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 ...
user avatar
1 vote
1 answer
487 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 ...
user avatar
1 vote
0 answers
362 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. ...
user avatar
  • 1,415
1 vote
1 answer
183 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 ...
user avatar
  • 11
2 votes
1 answer
304 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 ...
user avatar
0 votes
1 answer
414 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
user avatar
  • 1,089
1 vote
1 answer
166 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?
user avatar
1 vote
1 answer
232 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 ...
user avatar
5 votes
2 answers
211 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 ...
user avatar
  • 297
5 votes
2 answers
2k 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 ...
user avatar
1 vote
1 answer
172 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 [ “$?”...
user avatar