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
2 answers
34 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
  • 358
0 votes
0 answers
29 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
38 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
41 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
  • 21
0 votes
1 answer
21 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
  • 21
0 votes
0 answers
20 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
  • 11
0 votes
0 answers
43 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
34 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
  • 21
0 votes
2 answers
48 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
205 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,762
0 votes
1 answer
22 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
63 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
50 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
35 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
13 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
15 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
163 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,167
1 vote
1 answer
42 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
  • 135
0 votes
1 answer
53 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
39 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
0 votes
1 answer
96 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
  • 11
0 votes
1 answer
64 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
22 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 vote
1 answer
310 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
88 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
42 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
  • 391
0 votes
1 answer
60 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
  • 25
0 votes
1 answer
48 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
56 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
32 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
95 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
173 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
64 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
230 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
60 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
  • 11
0 votes
1 answer
153 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
49 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
83 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
62 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
0 votes
1 answer
104 views

How to debug emacs lisp? (e.g. Symbol's value as variable is void: n)

When I start Emacs, I get the error message: Symbol's value as variable is void: n I am pretty sure, it is just a typo in my init.el, but how can I find it? Shouldn't there be a debugger, which tells ...
Sinthoras's user avatar
0 votes
0 answers
36 views

Problem in opening files with filenames in Devanagari

I am using Emacs 28.2 on Trisquel 11. I have installed it using 'guix package manager'. When I am trying to open a file named in Devanagari characters it opens as blank file and the file name on mode ...
Sushant's user avatar
2 votes
1 answer
173 views

Error (use-package) : failed to install packages

I'm using Aquamacs Emacs 3.6 for Mac (I've got Ventura 13.4) I am setting up an emacs file for my developing environment, with the following contents : ;;; .emacs --- Emacs conf file -*- coding: utf-8 ...
Tariot's user avatar
  • 23
0 votes
0 answers
162 views

How can I reliably run doom emacs alongside spacemacs?

Years ago I had trouble switching to spacemacs from a vanilla emacs configuration. I was unable to reliably run both configurations without trickery involving moving .emacs.d directories. Now I have ...
Croad Langshan's user avatar
0 votes
0 answers
21 views

Need help with flycheck and etc-sudoers-mode

I want to install flycheck together with https://github.com/emacsmirror/etc-sudoers-mode. When I run gnu emacs, I get: Error (use-package): etc-sudoers-mode/:catch: Symbol’s value as variable is void: ...
lester's user avatar
  • 101
0 votes
1 answer
270 views

Is there a way to convince Emacs 29 to use the initial directory to save setup information?

One of the powerful features of Emacs is that you can change almost any of its settings using provided interactive dialogs. With the in version 29 provided possibility to specify a directory to load ...
Claudio's user avatar
  • 420
0 votes
1 answer
84 views

How to output ALL of the settings an Emacs version comes by default with as text to see where the differences between the versions are?

The Title already tells what the question is about. The purpose of the answer to this question would be to become able to find out which default values differ between the versions 27.1 and 28.2 of ...
Claudio's user avatar
  • 420
0 votes
1 answer
108 views

Local installed Emacs 28.2 does not load the settings from ~/.emacs created by Emacs 27.1

I have two versions of emacs installed on my system (Linux Mint 21 Cinnamon): ~ $ type --all emacs emacs is /usr/local/bin/emacs emacs is /usr/bin/emacs The /usr/local/bin/emacs is the version 28.2 I ...
Claudio's user avatar
  • 420
0 votes
0 answers
50 views

How to keep initializing regardless of errors signaled when loading init.el?

As most emacs user, I change my init.el fairly often. Sometimes a bug is introduced and the next time I start emacs I get an error message and a very ugly emacs without any of my keybindings. Then, I ...
TMat's user avatar
  • 95
0 votes
1 answer
84 views

recentf (wrong-type-argument stringp nil)

I seem to have updated something which is causing recentf to fail, not sure. Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-readable-p(nil) (and (file-readable-p filename) (...
Jason Hunter's user avatar
0 votes
0 answers
49 views

gnutls-available-p is void despite emacs being built with gnutls

I am attempting to secure my emacs 28.1 following the well-known guide here. After running into a (seemingly common) error with the bad certificate check I was lead to this emacs stackexchange post. ...
CL40's user avatar
  • 123

1
2 3 4 5
17