Questions tagged [init-file]

for questions about initialization files `.emacs` or `init.el. DO NOT USE this tag if you assume answers require tweaking initialization files because many solutions do not involve directly manipulating initialization files.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Why does emacs not load full configuration until `load-file` is called?

tl;dr I have the following snippet in config file: (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq indent-line-function 'insert-tab) It does not load until I load the init ...
Chinmay Chhajed's user avatar
0 votes
0 answers
25 views

auto-dark-theme: error ("Could not determine a viable theme detection mechanism!")

After several months of painless use, Emacs suddenly complained when loading the init.el file (maybe following updates I could not figure out). It seems the error is returned by the auto-dark-theme ...
Christophe's user avatar
0 votes
1 answer
65 views

Broken emacs trying to tangle multiple org files into a config.el file

Help! I've broken my emacs configuration. I was trying to sort out my messy config.el file by dividing it into multiple .org files. My init.el file now looks like this (require 'org) (org-babel-load-...
Lindsay's user avatar
  • 37
0 votes
1 answer
61 views

Celestial Mode Line throwing Error loading "celestial-mode-line" autoloads: (void-variable lunar-phases)

On startup am seeing this error and then the package is loading and working showing in modeline. Warning (emacs): Error loading "celestial-mode-line" autoloads: (void-variable lunar-phases) ...
Talespin's user avatar
  • 109
0 votes
1 answer
34 views

Autopair parenthesis with cdlatex

I'm trying to write my configuration for the first time and I am facing the problem with cdlatex completion of parenthesis conflicting with tools like autopairs. What happens is that, inside a TeX ...
kindaichi's user avatar
0 votes
1 answer
53 views

Opening TLS connection with ‘gnutls-cli --x509cafile /private/etc/ssl/cert.pem -p 443 stable.melpa.org’...failed

I am making a new Emacs config an in it, I have the following lines (with-eval-after-load 'tls (push "/private/etc/ssl/cert.pem" gnutls-trustfiles) (setf gnutls-verify-error nil) (setf ...
MadPhysicist's user avatar
0 votes
1 answer
198 views

Transition to emacs 29.1, "Eager macro-expansion failure" error at startup

On windows 10 at this time. Transitioning from emacs 27.2 -> 29.1 Emacs 27.2 starts up and runs the code in the .emacs and custom file ok. Downloaded emacs 29.1 to try it out. Emacs 29.1 errors out ...
Mikef's user avatar
  • 155
0 votes
0 answers
10 views

How to exclude emacs from updating in addition to pacman.conf

I'm ignoring emacs in /etc/pacman.conf and emacs --version indeed reports the same version (28.2) after system update. Yet I get a rather unpopular error Error in spacemacs/user-config: void-function ...
jjk's user avatar
  • 721
3 votes
3 answers
167 views

Binding a key in another package's yet undefined map in use-package?

I'm using use-package for my configuration in init.el. How can I bind a key to a map that has not yet been defined? As a specific example, I'm using the following configuration of (use-package latex-...
Henry DeYoung's user avatar
1 vote
1 answer
99 views

Add parsing of latex-style .el file to LaTeX-hook using AUCTeX

I did some online research (e.g. here) but couldn't figure out how to solve the following problem so far (of course, I might have overlooked something since the whole emacs community is new to me). ...
lukeflo's user avatar
  • 195
0 votes
1 answer
17 views

Emacs Keeps Data Even After I Close It + Doesn't Reload `.emacs`

Even after I close emacs with C-x C-c, it seems that it keeps some state saved: When I open it again, I can, for example, still see the old content of the *Messages* buffer. Also, it doesn't seem to ...
mimo31's user avatar
  • 111
0 votes
2 answers
47 views

so-long not detecting a long line in compilation output

I am trying to use so-long to improve the performance of compilation-mode when the compiler output contains very long lines (1000s of characters). When the compilation runs and I M-x so-long-minor-...
AnoE's user avatar
  • 408
0 votes
0 answers
74 views

How to enable evil-mode in Portacle?

I want to start learning Common Lisp and I want to use portacle for an IDE-like experience. As I understand, portacle doesn't provide a normal init.el configuration file. Instead, it uses a file in ...
MySQLInjection's user avatar
1 vote
1 answer
520 views

What is the init.el in doom emacs?

I recently installed doom emacs and really like how much it is developed. The problem I encounter is the following: I want to add LSP-support for emacs. On the website, it is illustrated how I can ...
MySQLInjection's user avatar
0 votes
0 answers
50 views

Why is emacs looking in `~/` for `.emacs`? [duplicate]

I'm using /usr/local/share/emacs/site-lisp/.emacs as my initialisation file. When I start emacs I get:- Warning (initialization): An error occurred while loading ‘~/.emacs’: Why is emacs looking in '~/...
balanga's user avatar
  • 125
0 votes
1 answer
26 views

Search path for lisp files

When starting emacs using the initialisation file /usr/local/share/emacs/site-lisp/.emacs what is the default search path for lisp files if I use the default value of load-path (I don't change the ...
balanga's user avatar
  • 125
0 votes
0 answers
35 views

Save LaTeX/AucTeX generated auxiliary files to a separate directory EXCEPT for the PDF file

I am using AucTex in Emacs to compile my LaTeX files. Is there a way to keep just the PDF file in the current directory and send all the other auxiliary files to a separate folder? I have set TeX-...
sm10's user avatar
  • 31
0 votes
0 answers
105 views

massive memory leaks

I have a problem with memory leaks. Normally, I have only a few small org mode files loaded, and maybe a few odd yaml or Python files, less than 20 altogether). Over time, emacs keeps eating memory ...
user29402's user avatar
0 votes
0 answers
38 views

Which of .emacs or init.el is evaluated first? [duplicate]

Which is evaluated first .emacs or init.el? And if there are conflicting statements which is used?
balanga's user avatar
  • 125
0 votes
2 answers
313 views

Emacs Won't Load My ~/.config/emacs/init.el... Unless I Do This

I'm new to Emacs so I ended up following along with a tutorial by System Crafters. In the video he notes that he is not loading his primary configuration for the tutorial, so he loads an Emacs ...
ari-gaskins's user avatar
0 votes
0 answers
808 views

Using (use-package ...) with Emacs 29+

I am using Emacs 29.1, which ships with use-package, and I want to install and load the MELPA bm package through the init file. I am using the following test-init.el init file: (defun my-packages () ...
antonio's user avatar
  • 1,802
0 votes
1 answer
30 views

When can function not be redefined in init.el?

To solve a problem with the Gnus' IMAP search in Exchange folders with Emacs 28.2, I have the modified piece of code from gnus-search.el below. However, if I add this to my init.el on starting Emacs ...
loris's user avatar
  • 315
1 vote
2 answers
66 views

Difference between emacs and emacs --load ./init.el

I have the init.el file with following configuration: (require 'package) (add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/")) (add-to-list 'package-archives '(&...
Org Mode Beginner's user avatar
0 votes
1 answer
314 views

How to fix lsp-mode for Elisp?

I have this set in my init file: ;; build dependency tree for function (use-package lsp-mode :ensure t :hook ((clojure-mode . lsp) (clojurescript-mode . lsp) (prog-mode . ...
Pedro Delfino's user avatar
0 votes
2 answers
61 views

How can I bind Option+up-arrow to scrolling command?

I'm on a Mac, using iTerm2. 'Option' is the same as Alt, and Alt is Meta in emacs. First, in emacs I typed C-h k followed by Option-Up (Hold option key and press up arrow). The output was ESC <up&...
Chap's user avatar
  • 177
0 votes
0 answers
27 views

Strange issue with dired-subtree

This is my simple config: (use-package dired-subtree :ensure t :bind (:map dired-mode-map ("<tab>" . dired-subtree-toggle))) The first time the ...
user129393192's user avatar
1 vote
0 answers
21 views

Initialization not liking whitespace mode after upgrading to 29.1?

I have the following configuration for whitespace mode in my .emacs file: (require 'whitespace) (setq whitespace-style '(trailing lines indentation space-before-tab space-after-tab) whitespace-...
Meng Lu's user avatar
  • 163
1 vote
1 answer
248 views

What utf-8 settings need to be explicitly set in dot emacs

I run Emacs in Windows via msys2. If I set my language environment in my .bashrc using export LANG=en_US.UTF-8 I get as my default environment in Emacs utf-8-dos. Is there a need thereafter to set any ...
Edman's user avatar
  • 1,197
1 vote
1 answer
69 views

Make the linter aware of autoloads for init files using package-quickstart

If I try to call an autoloaded function inside my init.el file, it will get executed normally. However, the byte compiler will give me warnings about undeclared functions. This applies for all user-...
cidra's user avatar
  • 139
0 votes
1 answer
66 views

How to collapse the output of code evaluation in org mode?

I would like to evaluate the code blocks in org-mode. However, when the output is lengthy, I want the output result to be collapsed. When I export the org file to the html, I want to see the result. ...
virtual_mind's user avatar
0 votes
1 answer
62 views

use-package with builtin mode, such as display-time-mode

I'm trying to use the use-package method of organizing my Preferences.el file in Aquamacs. When I try to use use-package display-time-mode, I get the following error message. Debugger entered--Lisp ...
Henry DeYoung's user avatar
1 vote
1 answer
440 views

Automatic popup of words from the buffer using Corfu and Dabbrev

How can I make Dabbrev and Corfu automatically show a pop-up for the words from my current buffer? For example, if I write "example" somewhere in a document, I would like it pops up ...
sm10's user avatar
  • 31
0 votes
1 answer
121 views

ivy-rich-mode not loading automatically after Emacs restart

If after restarting Emacs I do M-x ivy-rich-mode, the minibuffer displays "ivy-rich-mode disabled." However, despite this message, the ivy-rich functionality, such as vertical completion, ...
user avatar
0 votes
1 answer
30 views

Aquamacs hangs when refreshing package contents

I'm trying to use use-package in my Preferences.el file under Aquamacs 3.6. Every time I try to run Aquamacs with the following Preferences.el, Aquamacs hangs, usually indefinitely. (require 'package)...
Henry DeYoung's user avatar
3 votes
2 answers
1k views

What is an eln-cache and how do I get rid of it?

I'm using Emacs 28.2 on Debian 12.1 with just some org-mode settings in the init file, and it suddenly produces an eln-cache/ every time I start it and populates it with a lot of files. It's annoying ...
luciljus's user avatar
0 votes
1 answer
99 views

Preventing loading of packages removed from Emacs's initialization file

Several packages continue to be available for use, even though I have removed them from init.el and restarted Emacs. However, this does not occur with emacs -Q. Previously, the persisting packages ...
user avatar
1 vote
1 answer
57 views

If I remove "package-enable-at-startup" line, what is the effect?

I have this line in my early-init.el file: (setq package-enable-at-startup nil) By removing this line I basically tell Emacs to make installed packages available before loading the init.el file. ...
Zoli's user avatar
  • 421
0 votes
1 answer
256 views

"Error (frameset): Wrong type argument: number-or-marker-p, nil" How to debug it?

Such a message in the "Warnings" window. "Frameset" I think refers to the .emacs.desktop file. I got this message when Emacs in daemon mode restored the desktop. There is no such ...
Herman's user avatar
  • 27
0 votes
1 answer
83 views

Why is 'eval-after-load' required here?

(eval-after-load "dired" '(progn (define-key dired-mode-map "c" 'dired-create-empty-file) (define-key dired-mode-map "r" 'dired-do-compress-to))) Why is the ...
user129393192's user avatar
0 votes
1 answer
123 views

(wrong-type-argument stringp nil) error when calling tangle

As the title says, I get this error whenever I, or the function I'll show below, call org-babel-tangle. I'm using a org file to configure emacs, which tangles every time it is saved to my init.el. The ...
Felipe Canteiro's user avatar
0 votes
0 answers
70 views

"touch file" in dired mode

I found this answer: (eval-after-load 'dired '(progn (define-key dired-mode-map (kbd "c") 'my-dired-create-file) (defun create-new-file (file-list) (defun exsitp-untitled-...
user129393192's user avatar
1 vote
2 answers
157 views

Avoid placing safe-local-variable-values in init file

I have a project with a .dir-locals.el file. This file contains some customizations for various project local variables, e.g. include directories for semantic and arguments for clang. First time ...
alexpanter's user avatar
2 votes
1 answer
259 views

custom-set-faces not working for client

I have a custom (custom-set-faces ...) section in my ~/.emacs file. When I run emacs this section seems to get completely ignored since the custom colours don't get set. But if I go to ~/.emacs, ...
Jan Stolarek's user avatar
0 votes
1 answer
128 views

What configuration file should I modify to affect tramp configuration?

I am new to Emacs. I run Linux. I'd like to tramp into a Windows machine, so that I can edit the files on the Windows machine from the comfort of my Linux system. Apparently, you have to change the ...
John Smith Optional's user avatar
2 votes
1 answer
366 views

How to load font for emacs on Arch Linux?

I want to use a custom font for emacs on arch linux. Therefore, I installed the package ttc-iosevka. Then I added the following line to my init.el: (set-frame-font "/usr/share/fonts/TTF/iosevka-...
MySQLInjection's user avatar
1 vote
0 answers
104 views

Prefix key in general package does not work with emacs start up page (fundamental mode)

I am trying to define key bindings with general.el following emacs from scratch. However, the leader-prefix key (SPC) does not seem to work from the Emacs start-up page (Fundamental mode). It works ...
sm10's user avatar
  • 31
0 votes
1 answer
382 views

Melpa packages not listed

On Mac OS, Emacs 28.2, I have the following lines at the top of my init.el (require 'package) (add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") '("...
vpk's user avatar
  • 105
0 votes
0 answers
75 views

New windows open below (horizontal split) by default

Before, I used to have that windows would open on the right of my current window for things like M-x man and M-x shell. Now I have that they open below. All I've done is uninstall and reinstall my ...
user129393192's user avatar
1 vote
1 answer
167 views

How do I turn off electric-indent mode within 'Fundamental' mode?

Currently, in my .emacs.d/init.el, I have: (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq indent-line-function 'insert-tab) (push (cons "\\*shell\\*" display-buffer--...
user129393192's user avatar
0 votes
0 answers
95 views

In Doomemacs how to get "SPC q l" to automatically run the moment doom loads after I run "emacs .&" from command line

On my linux box when I run emacs .& from the command line, inside a folder it opens up and displays that folders contents via Dired. I need to either: display the Doom landing screen instead of ...
thefonso's user avatar
  • 101

1
2 3 4 5
17