Questions tagged [start-up]

About starting and initializing an Emacs session

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
448 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 ...
3
votes
0answers
77 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
0answers
421 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
2k 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 ...
2
votes
0answers
85 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 ...
2
votes
0answers
387 views

Emacs times out trying to read from /dev/tty on startup?

After several years of being annoyed of Emacs on Ubuntu (not Mac via brew) having a ~2-3 second delay before displaying file contents at startup I finally decided to debug this. I ran strace -r emacs ...
1
vote
0answers
69 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-...
1
vote
0answers
60 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 ...
1
vote
0answers
225 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
99 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 ...
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 ...
0
votes
1answer
53 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
0answers
38 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
0answers
39 views

Emax64 trying to install already installed pdf-tools on every startup

I am using the emax64 build of Emacs for Windows x86-64 systems. However, it tries to install pdf-tools on every startup, even though it is already installed. How to turn this off? -*- mode: ...
0
votes
0answers
61 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/...
0
votes
0answers
31 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 ...
0
votes
0answers
57 views

Can't run emacs from terminal.Cannot open load file: No such file or directory

Emacs 26.1 Linux Mint 19 Open terminal, write emacs, but I get error: Warning: Could not find simple.el or simple.elc. Cannot open load file: No such file or directory
0
votes
0answers
57 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
0answers
452 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
0answers
86 views

What's the value of default-directory during startup?

I'm looking through startup.el, and normal-top-level-add-subdirs-to-load-path references the default-directory variable. What's the value of that variable during startup? I searched for calls to ...
0
votes
0answers
131 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 ...
0
votes
0answers
244 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 ...
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 ...
0
votes
3answers
809 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 ...