Skip to main content

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
23 views

Elpaca: problems with eglot version and flymake

I am using elpaca as my package manager. When I try to install flymake, using the use-package compatibility, I am getting the following error: eldoc installed version (1 13 0) lower than min required ...
0RI0N's user avatar
  • 1
1 vote
2 answers
55 views

replace expressions with output in code-blocks before org-babel-tangle

How to evaluate the expressions or functions in a code-block before tangling a source code block? I generate my init.el file using org-babel-tangle AND I'm using chemacs2 - which allows using ...
Gangula's user avatar
  • 255
0 votes
2 answers
18 views

In LaTex mode, check if we are not in math mode for aas package

I am using the aas package (auto-activating snippets). When I want a snippet to expand we can do so by putting the following in the use-package declaration in the .emacs file: :cond #'texmathp "...
kreitz's user avatar
  • 1
0 votes
0 answers
45 views

Error identifying the "coding system" of the custom bullets

I'm trying to setup Emacs from scratch in my Windows system with Emacs. I'm constantly getting below error whenever I try to close the emacs session. I found this related post in reddit, but unlike ...
Gangula's user avatar
  • 255
0 votes
1 answer
19 views

lexical binding in a tangled init.el file

How can I enable lexical binding in an init.el file that is tangled from an org mode file? I have an org mode file called Emacs.org which is used to tangle the init.el file using the command M-x org-...
Gangula's user avatar
  • 255
1 vote
1 answer
44 views

How can I call a self defined function on Emacs startup?

I'm very new to Emacs and i would like to know why the following doesn't work for me: When I run Emacs, I would like to have my ~/ buffer displayed. I previously defined my own function to get back to ...
Davide Farassino's user avatar
0 votes
0 answers
19 views

On startup `run-hooks: Cannot open load file: No such file or directory, emacs` for `emacs` package itself

Due to an misformed Makefile I deleted my ~/.config dir which contained all my Emacs setting under .config/emacs following XDG-sheme. Luckily I had a backup of all my dotfiles so no big problem -- I ...
lukeflo's user avatar
  • 195
0 votes
0 answers
35 views

How can I check my .emacs file for legacy functions?

Recently I did (describe-function 'global-unset-key) and saw, This is a legacy function; see ... for the recommended function to use instead. Holy smokes, that's just the tip of the iceberg. My ....
Dan Jacobson's user avatar
0 votes
1 answer
41 views

emacs initialisation files

I'm aware of being able to start emacs with a specific init.el, but I'm trying find a way of having my normal emacs configuration which is in ~/.emacs.d separate from my doom configuration which is in ...
balanga's user avatar
  • 135
0 votes
0 answers
27 views

Melpa packages not loading

My init.el file looks like this: (require 'package) '(package-archives '(("melpa" . "https://melpa.org/packages/") t ("gnu" . "http://elpa.gnu.org/packages/&...
rogerl's user avatar
  • 205
0 votes
0 answers
47 views

How can I configure my emacs so I can program in java?

I installed Emacs recently, because I already had a good experience with Vim (another ide that gives the user freedom to modify the ide as the user wants) and as I am studying Java together with Elisp ...
Bruno Ciccarino's user avatar
0 votes
1 answer
119 views

My emacs doesn't run my init file, how can I solve?

I wrote the emacs configuration file in Elisp. But when I restart Emacs it comes back from scratch as if I hadn't configured it, but the configuration file continues in .emacs.d/init.el. So I don't ...
Bruno Ciccarino's user avatar
1 vote
1 answer
64 views

Setting default font to Inconsolata doesn’t work in Emacs 29/macOS

Using macOS Sonoma on M1 Mac Mini and M1 Air. Emacs from https://emacsformacosx.com. I have Inconsolata installed in ~/Library/Fonts/, validated by Font Book. My .emacs calls up .emacs-custom.el, at ...
Simon Wright's user avatar
0 votes
1 answer
35 views

function redefined in .emacs gets overwritten at startup

I redefine the function rmail-make-in-reply-to-field in my .emacs but I noticed that when I restart emacs and invoke rmail then my redefined function is overwritten by the standard until I call M-x ...
user43824's user avatar
1 vote
1 answer
153 views

How to provide updated 'seq' package to magit?

Recently I installed Debian (so I rewrote my emacs configuration file). I usually like to use use-package, because it makes the installation of packages simple. This is how I fetched magit from melpa: ...
Eldinur's user avatar
  • 13
0 votes
0 answers
25 views

Doom Modeline Configs Does Nothing

The modeline displays correctly but none of the variables changes how it's displayed, no matter where I place them (tested with doom-modeline-position-column-format and doom-modeline-enable-word-count)...
confusedcius's user avatar
-1 votes
1 answer
60 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
34 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
103 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
65 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
  • 119
0 votes
1 answer
68 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
97 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
1 vote
1 answer
394 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
  • 175
0 votes
0 answers
13 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
  • 744
3 votes
3 answers
188 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
129 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
19 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
54 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
  • 450
0 votes
0 answers
103 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
939 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
51 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
  • 135
0 votes
1 answer
30 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
  • 135
0 votes
0 answers
47 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
144 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
40 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
  • 135
0 votes
2 answers
615 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
1k 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,822
0 votes
1 answer
36 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
70 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
493 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
94 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
  • 187
1 vote
1 answer
49 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
23 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
296 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,229
1 vote
1 answer
91 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
72 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
70 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
683 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
168 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
36 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

1
2 3 4 5
17