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
1answer
11 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
23 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
40 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
30 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
27 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
32 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
11 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
14 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
1answer
26 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 ...
1
vote
1answer
41 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
31 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
37 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
27 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
78 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
36 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
36 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
37 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
77 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
56 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
51 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
12 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
24 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 ...
2
votes
1answer
41 views

emacs-custom file get overwritten

In my init.el, I have the following line (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) which is supposed to set the file custom.el into .emacs.d config folder for ...
0
votes
1answer
110 views

Suppress “Ignoring <ruby gem>” messages on emacs startup

When I start emacs, I get a bunch of messages Ignoring charlock_holmes-0.7.7 because its extensions are not built. Try: gem pristine charlock_holmes --version 0.7.7 Ignoring escape_utils-1.2.1 ...
1
vote
1answer
33 views

What is the difference between emacs -Q -u [my-user] and emacs -Q -l [my-init-file.el]

I have all my emacs config in .emacs.d/init.el. The first command in that file is: (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) When I ...
0
votes
0answers
38 views

(org-babel-load-file (expand-file-name “~/.emacs.d/config.org”)) behaves strangely on Windows 7

In my initialization file the line (when (file-readable-p "~/.emacs.d/config.org") (org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))) give me the error: *Warning (...
0
votes
1answer
28 views

Auctex change default comment style for latex-mode

I want a double %% to start my comments in latex documents. I'have found two solutions suggested ;; solution 1 (add-hook 'latex-mode-hook '(lambda() (setq comment-start "%% "))) ;; ...
3
votes
1answer
98 views

setq require-final-newline not working when setq-default does

I want all my files to end with only one newline, while trimming trailing whitespaces on regular lines. Like so : ($ is newline face) text$ $ last_line$ I use whitespace-cleanup in my init file, like ...
0
votes
0answers
166 views

No such file or directory: dash

Since few days I am getting this error but I don't remember changing anything in my configuration. I have dash installed on my system. I was thinking then it needs dash Emacs package, but after ...
5
votes
1answer
52 views

Is there an efficient way to tell which parts of my startup of Emacs take the longest to load?

I have been trying to make the start-up times better. Almost all of my init.el is broken into use-package declarations like this: (use-package x ...) (use-package y ...) (use-package z ...) I want to ...
0
votes
2answers
33 views

How to remove second row of menu entries (or is it a toolbar)?

I have installed OpenSuse Tumbleweed and later Emacs. If I start Emacs from the shell, $ emacs -Q I have a double row of menu entries File - Edit - Options - ... - Help New File - Open - Open ...
1
vote
1answer
22 views

How do I use global-unset-key for non ASCII characters?

I am using QWERTZ with Czech layout and to write certain characters like { and } I have to press down option, however in my emacs (using the emacsformacosx version) the option key is bound to the Meta ...
0
votes
1answer
116 views

How to configure lsp-cmake lsp server in vanilla emacs

I want to setup lsp-cmake lsp server in my vanilla emacs. I just installed lsp server using pip install cmake-language-server. I don't know how to configure in my emacs init.el to use the lsp server. ...
0
votes
0answers
141 views

From stock Emacs to Emacs Doom - Issues with Key Bindings and de-activating Evil-mode - ORG-MODE use

I have migrated to emacs-Doom and wish to keep the emacs vanilla key-bindings. I also use emacs exclusively for org-mode I have amended the init.el file to remove the evil and removed any attributes ...
0
votes
1answer
58 views

What is the system-wide location for init.el?

Is there a way to have a common init.el for several system users? /etc/emacs.d/init.el for example?
0
votes
0answers
48 views

Getting uninstall packages offer after package updates

Each time I call up list-package and update, I get this message after the updates Operation finished. Packages that are no longer needed: 43. Type ‘M-x package-autoremove’ to remove them Below is ...
0
votes
1answer
58 views

User emacs has no home directory

I am an emacs newbie running emacs doom on Linux. I am learning how to use traditional emacs in my free time and have an emacs config file that I want to test out. I launch my traditional emacs by ...
0
votes
1answer
64 views

Different folder for .emacs (not HOME)

My company's I.T. department has assigned our HOME directory to a network server. With the COVID-19 pandemic we are now using VPN to connect to the company's network. Having to to go through VPN to ...
1
vote
1answer
117 views

org-babel-tangle error

I am experiencing a very unusual (concerning) error with my org-mode installation, and I am afraid that something might be broken. First, I have this setup in my .emacs file ;; Use my org-mode file as ...
1
vote
1answer
21 views

How to investigate defmacro* (with asterisk) error on an old emacs package

I'm trying to load the defhook package without success. The code defines a macro using defmacro* (with the asterisk at the end), and I can't find any info about it. (The fact that the '*' is ignored ...
1
vote
2answers
112 views

(load-theme) at the bottom of .emacs, or manually renders a different screen

Adding this line at the very end of the .emacs file, that loads a default theme coming with the Emacs package, (load-theme 'tsdh-dark) the (main) screen looks like Note the black-on-dark text, the ...
0
votes
1answer
49 views

Show only headers in outline mode when I open my dot emacs

I use outline-minor-mode to organize my .emacs file. I have this code at the end to activate it in the file: ;;; Local Variables: ;;; eval: (outline-minor-mode 1) ;;; eval: (hide-body) ;;; outline-...
0
votes
0answers
34 views

Emacs tries to read init.el from remote machine during start-up

I have a very weird issue since a few days without being aware of any change in my set-up. I run Emacs 27.1 (on macOS installed via macports) on my laptop and on my desktop computer with a very ...
0
votes
0answers
155 views

Disable package refreshing when starting emacs

I have bad internet connection. Starting spacemacs takes a long time because of the "refreshing package archive melpa or gnu or others...". or "installing package: ...". When i ...
0
votes
1answer
39 views

Idiomatic way to store and access custom LaTeX code

I have some latex classes or bunch of packages I use and that I'd like to move out of my init.el because it keeps on growing and I want them to be standalone. How can I make them accessible from my ...
2
votes
1answer
36 views

storing string in variable fails to work in `early-init.el`

Putting the following code in my early-init.el causes my emacs not to startup. (require 'cl-lib) (defvar void-initial-frame-font (cl-find-if (lambda (font) (find-font (font-spec :name font))) ...

1
2 3 4 5
14