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
0answers
19 views

Problem with loading packages with Emacs 28

I have installed Emacs 28 with snap from https://snapcraft.io/install/emacs-28. My init.el is configured using use-package. However, I get the following errors when I try to install and load custom ...
0
votes
1answer
48 views

symbol's function definition is void

My dotemacsfile looks like the following. (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize) ;load and activate ...
0
votes
1answer
23 views

How can I remove more libs to reduce loading at startup?

When I view the number of commands or functions through M-x I notice so many that I never use. However I also didn't load them explicitly in my init.el either. I do use use-package and have ...
0
votes
1answer
32 views

error when trying to use custom made dotemacs file

I was getting an error when I did a (require 'auto-complete) in my init file. A comment suggested I check my load-path or alternatively use the package manager if I didn't want to do that manually. So ...
1
vote
1answer
17 views

Loading hi-lock patterns from .emacs or custom .el file

I'm trying to add syntax highlighting to specific file extensions (for example .foo). I can't have the Hi-lock patterns in the source code because I shouldn't be committing them. Is there a way of ...
0
votes
0answers
41 views

problem connecting to melpa packages

I'm new to emacs, and I'm having problems when trying to set up my init.el file to connect to the melpa packages site. I'm using MacOS Big Sur version 11.6, and Emacs version 26.2 (9.0) since there ...
0
votes
0answers
26 views

Set httpd-root as current work directory in init.el

I want to setup httpd-root variable as current emacs work directory in init.el. So I added below line in init.el. (setq httpd-root default-directory) This line works fine in linux, but in windows, it ...
1
vote
1answer
25 views

How change name of file "projects" and set it in init.el?

Emacs 27.2 In ~/.emacs.d/projects This file content all my projects. press d But I need to change file name. E.g. projects-laptop. Is it possible and and set it name on init.el file? P.S. For ...
2
votes
2answers
121 views

Different versions of bookmarks for home and office computer

Linux Mint 20.2 Emacs 27.2 I installed Emacs 27.2 on my home and office computer. Both computers on LInux Mint 20.2 I has the same init.el for both computers. And its very convenient. I push my init....
0
votes
1answer
27 views

How to replace ascii codes with characters in custom settings or buffer?

I customized org-tag-alist using the built-in customization interface. This stored the values in ("tag") . <ascii key value>) pairs like this: ("ez" . 90) ("pin"...
0
votes
1answer
22 views

Lambda triggering error when executed

I'm setting up a mechanism that allows me to conveniently specify minor modes in a list that should not take up space in the modeline. At the bottom of the following code snippet, this list is ...
1
vote
1answer
64 views

is it possible to execute a command on specific set of files upon exiting emacs

I use emacs as my editor with mutt. I would like to run a python code on the /tmp/mutt-* files upon exit (that is called email-process, and that is written and works). For instance, in the case of vim,...
0
votes
1answer
12 views

How to make csv-align-mode default in tsv-mode?

I'm editing tab separated file with Emacs and csv-mode.el. When the document is open, I can align the columns with M-x csv-align-mode. How to make it automatically aligned when I open the file? Both ~/...
0
votes
0answers
19 views

How to configure ivy to create parent node when refiling if parent doesn't exist?

I set up ivy and it's working for finding files and refiling headlines. It just doesn't work when I try to refile and simultaneously create a new node. For example, if I wanted to refile a task, ...
0
votes
0answers
14 views

Melpa List of Packages is not complete despite refreshing

I am trying to set up Emacs from scratch for Common Lisp, as I want to learn both Emacs and Common Lisp in my spare time. I am having an issue with Emacs, and have been wrestling with it for a few ...
0
votes
0answers
54 views

package-load-descriptor: End of file during parsing

I've encountered this error on an Arch Linux system running Emacs-27.2. I sync my Emacs ~/.config/emacs/init.el which calls a host of other files located under ~/.config/emacs/settings/*-settings.el ...
1
vote
1answer
24 views

always show archived tasks in org-agenda

Good day! I have this line of code in my .emacs: (require 'org-agenda) (setq org-agenda-archives-mode t) Basically I want agenda items to be extracted from archive file. As soon as I start emacs and ...
0
votes
2answers
91 views

Is it possible Emacs automate to do many steps after restart Emacs?

Given: Linux Mint 20.2 Emacs 27.1 3 monitors After restart Emacs I every time do the next steps: 1. make-fram-on-monitor (in full screen mode) -> DP1 2. make-fram-on-monitor (in full screen mode) -...
0
votes
0answers
18 views

How to add a toolbar button in AUCTEX

I have added this "stanza" on emacs 27.1 using custom.el '((arara :image "~/.emacs.d/arara.xpm" :command (progn (TeX-save-document #'TeX-...
0
votes
1answer
40 views

How to read an s-expression at load-time

Why does it seem impossible to read an s-expression at load-time? Given this and only this s-expression in my init file: (save-excursion (end-of-defun) (beginning-of-defun) (setq beg (point)) (...
0
votes
1answer
57 views

Is there a way to get the line of the currently executing s-expression?

Say I have a some code in my init file (line numbers are marked on the left-side margin): 1. 2. 3. 4. 5. (let ((a 1)) 6. (message "a%s steak sauce" a)) 7. 8. 9. 10. => "...
0
votes
1answer
49 views

Setting latex compiler

I was happily running emacs with a locally installed texlive in ~/texlive/2021 on manjaro KDE. But I decided to switch to Gnome. So, installed necessary packages, removed the ones I did not need and ...
0
votes
0answers
20 views

Integrating a shell script with Emacs + aucTeX

I use git to track changes in my LaTeX documents. Emacs is my IDE of choice (20+ years and counting). A very common use case is the use of latexdiff to examine changes in the document between ...
0
votes
0answers
43 views

List files opened by emacs

I am having trouble finding an init problem where emacs -q gets the error Invalid face: highlight, but emacs -Q does not. I would like to list the files opened by emacs to track down this problem. Is ...
0
votes
1answer
15 views

How to make this mode work in all buffers except for the SLIME's REPL buffer?

I have this minor mode set to work on all buffers: ;; John Mercouris centered point mode ;; Homepage: https://github.com/jmercouris/emacs-centered-point (define-minor-mode centered-point-mode "...
0
votes
1answer
36 views

How to specify relative path to a file inside init.el

I have something like this inside my init file: (when (file-readable-p "/absolute/path/to/config.org") (org-babel-load-file (expand-file-name "/absolute/path/to/config.org")))...
1
vote
0answers
57 views

`org-ellipsis` respected by `emacsclient` but not by `emacs`

In my emacs.d/init.el I have: (use-package org ;; ... :custom (org-ellipsis " ▼") :custom-face (org-ellipsis ((t (:foreground "#665" :underline nil)))) ;; ....
0
votes
0answers
14 views

How to change Latex preview font color in different themes?

I have this in my init.el: org-format-latex-options '(:foreground "MediumPurple" ... ) But I'd like use different colors in different themes. How would I do this?
1
vote
1answer
33 views

How to correctly set the path?

I've been unable to run the elixir shell using alchemist-iex-run because the erlang executable erl is not found in my path. Here's the error: /opt/homebrew/Cellar/elixir/1.12.1/bin/elixir: line 230: ...
0
votes
1answer
32 views

How can I get rid of `Loading /home/user/.emacs.d/package.el (source)...done` message after installing a package manually?

I'm trying to install this package manually, adding the org-bullets.el file to my emacs directory. As suggested, I enabled it adding (load-file "~/.emacs.d/org-bullets.el") (require 'org-...
0
votes
0answers
29 views

use-package keybind only works with eval-buffer

The following init.el keybind doesn't work after starting emacs, only when I eval-buffer init.el (otherwise C-c C-d just goes to its default bind in python-mode): (use-package python-mode :ensure ...
0
votes
1answer
58 views

Emacs does not respoect custom-set-faces, loads wrong font

I have an issue setting fonts in GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 which is under Windows 10. I set the font successfully, but when I reopen Emacs my setting is not respected ...
0
votes
1answer
21 views

terraform tfls server always asks if restart when edit a .tf file in spacemacs

When I use terraform layer with spacemacs, after operate a .tf file, at the status bar it always notices the message below: Server tfls:3869 exited with status exit(check corresponding stderr buffer ...
0
votes
0answers
17 views

"window-combination-resize" sometimes not working

In my .emacs I use (setq window-combination-resize nil) to prevent Emacs from resizing split windows evenly. In the upper part of the buffer I usually have an Org mode file, in the bottom part is the ...
1
vote
2answers
34 views

emacs startup says "Invalid face: highlight"

When I start up emacs, it prints Invalid face: highlight and then exits. This problem happened after I reinstalled Ubuntu 21.04 from scratch. Any suggestions on how to debug this? I have tried 26.2 ...
2
votes
1answer
51 views

How to autoload a non-elpa package such as help-fns+.el?

I read from some posts (require vs. package-initialize?, and here) that Emacs can autoload packages installed via ELPA/MELPA, which avoids using require on packages and speeds up loading during ...
0
votes
1answer
33 views

How to set my settings in my init file?

I'm working on a shell script to automate the way I install linux on my computers. I'd like to incorporate some emacs customizations into this script. For example, as soon as emacs is installed, I'd ...
0
votes
1answer
40 views

How Do I Create Init file [duplicate]

I want to find my init file.. but I cannot, supposedly it must be created? How do I create an init.el file? Do I just C-X C-F and then type ~/.emacs.d/init.el?
0
votes
0answers
27 views

How to install cozy fireplace?

I am a beginner. Like a complete and total noob. I want to get this cozy fireplace thing for fun on emacs -> https://github.com/johanvts/emacs-fireplace How do I install it? I do not understand the ...
0
votes
1answer
37 views

Open two files on startup - how to set vertical split as default?

When I invoke Emacs from the shell with the command emacs fileA fileB, I'd like to have the Emacs window split vertically (i.e. with one file on the left and one file on the right), not horizontally, ...
0
votes
0answers
84 views

Get fancy startup screen on new emacsclient frame

When I run emacsclient -c, How can I get a frame with the fancy-startup-screen similar to when emacs is started by itself. I would like to see what I see with the start screen of the non-server ...
0
votes
0answers
55 views

Scan error: "Unbalanced parentheses" in fresh emacs installations, without config files

When I start emacs and run M-x up-list in the initial buffer (the about Emacs buffer, in fundamental mode) I get Scan error: "Unbalanced parentheses". If I move the mark to the end of the ...
1
vote
1answer
38 views

How to fix buffer-local variable?

I have the following in my init.el, (setq-default display-line-numbers 'visual) (global-display-line-numbers-mode 1) which should give me relative line numbering. On starting emacs, it does on the ...
1
vote
0answers
15 views

Release terminal filestreams on start

I want emacs to release (instead of grabbing) the parent terminal when started through the command line. Better if it is possible to send error messages to some temporary file. By that I mean ...
1
vote
1answer
40 views

Emacs not loading function on start-up

I put the following in my .init file: (defun ndk/org-refile-candidates () (directory-files "/home/rob/Dokumente/todo/" t ".*\\.org$")) (add-to-list 'org-refile-targets '(ndk/...
2
votes
2answers
116 views

Where should I find init.el, if it is not in .emacs.d?

I do not find init.el in .emacs.d. Where should I put my configuration? % ls -a .emacs.d . .session auto-save-list recentf .. .uptimes.el org-clock-save.el var
0
votes
0answers
91 views

How to properly set mbsync and gpg binaries path with mu4e?

I'm trying to sync my emails from emacs using mu4e but I get the following error message: Process mu4e-test exited abnormally with code 127 /bin/bash: mbsync: command not found If I set mbsync with ...
1
vote
1answer
75 views

How to change CSS files to indent to 2 spaces?

I have only installed emacs straight out of the box. I have not installed anything else: GNU Emacs 26.3 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. ...
0
votes
0answers
14 views

How to make ryo-modal not insert undesired keys?

According to its project page ryo-modal, ryo-modal keeps unmodified all keys that weren't allocated for it. Notice that other keys are unmodified, so pressing r would insert r into the buffer. My ...
0
votes
0answers
37 views

emacs initialization file on FreeBSD

The emacs initialization file states: When Emacs is started, it normally tries to load a Lisp program from an initialization file, or init file for short. This file, if it exists, specifies how to ...

1
2 3 4 5
14