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.
829
questions
0
votes
1
answer
14
views
Problem installing slime
Installed SBCL, Emacs and quicklisp. Wrote .emacs and stored it in my home folder.
M-x slime gives response: "no match".
checked that the file is really there. Contents:
(load (expand-file-...
0
votes
1
answer
45
views
File is missing: Cannot open load file, No such file or directory, global-set-key
I wanted to customize the key binding of emacs with a simple set of key binding that we all use in every application. for example for the cut, copy paste etc.
SO I created a init file in
/home/my-user/...
0
votes
1
answer
31
views
How to bind a custom compile command to a key?
In my .emacs file,I want to pass the current buffer file name to an external bash compile script called, "com", and bind it to a keyboard key, preferably, Ctrl-F5.
I have tried several ...
0
votes
0
answers
18
views
How to inspect where a variable value is set?
M-x describe-variable exwm-randr-workspace-monitor-plist returns:
...
exwm-randr-workspace-monitor-plist is a variable defined in ‘exwm-randr.el’.
Its value is (0 "VGA1")
Original value was ...
1
vote
1
answer
207
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 ...
2
votes
2
answers
91
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 ...
0
votes
2
answers
36
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
"...
0
votes
0
answers
54
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 ...
0
votes
1
answer
56
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-...
1
vote
1
answer
63
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 ...
1
vote
0
answers
45
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 ...
0
votes
0
answers
39
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 ....
0
votes
1
answer
105
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 ...
0
votes
0
answers
36
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/&...
0
votes
0
answers
68
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 ...
0
votes
1
answer
148
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 ...
1
vote
1
answer
140
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 ...
0
votes
1
answer
36
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 ...
1
vote
1
answer
281
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:
...
0
votes
0
answers
54
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)...
-1
votes
1
answer
76
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 ...
0
votes
0
answers
49
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 ...
0
votes
1
answer
126
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-...
0
votes
1
answer
74
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)
...
0
votes
1
answer
88
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 ...
0
votes
1
answer
142
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 ...
3
votes
1
answer
548
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 ...
0
votes
0
answers
15
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 ...
3
votes
3
answers
202
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-...
1
vote
1
answer
136
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).
...
0
votes
1
answer
21
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 ...
0
votes
2
answers
56
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-...
0
votes
0
answers
118
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 ...
1
vote
1
answer
1k
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 ...
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 '~/...
0
votes
1
answer
33
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 ...
0
votes
0
answers
182
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 ...
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?
0
votes
2
answers
804
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 ...
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 ()
...
0
votes
1
answer
37
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 ...
1
vote
2
answers
73
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 '(&...
0
votes
1
answer
596
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 . ...
0
votes
2
answers
118
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&...
1
vote
1
answer
62
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 ...
1
vote
0
answers
24
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-...
1
vote
1
answer
316
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 ...
1
vote
1
answer
113
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-...
0
votes
1
answer
74
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. ...
0
votes
1
answer
80
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 ...