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
24 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
12 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
73 views
+50

(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
39 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
29 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
29 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 ...
1
vote
1answer
33 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
30 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))) ...
0
votes
0answers
48 views

Configure x-export-frames to take svg screenshots (Mac/OSX)

Using this reddit post as inspiration, I am trying to create a screenshot-svg command using the following config: (defun screenshot-svg () "Save a screenshot of the current frame as an SVG ...
1
vote
3answers
69 views

How to prevent M-x package-install from editing my ~/.emacs file?

When I install packages with M-x package-install, it edits the ~/.emacs file and adds the following content: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by ...
1
vote
0answers
50 views

Installing quelpa-use-package from use-package

Currently I have the following init file to install and use use-package: ;; Package.el (require 'package) (package-initialize) (setq package-enable-at-startup nil) (add-to-list 'package-archives '(&...
0
votes
1answer
23 views

I need a key binding of: “M-x compile” then in Compile commant type the “Compile command: love2d /home/huseyin/Documents/Programming/Lua/”

I need a key binding of: M-x compile then in compile command type like Compile command: love2d /home/huseyin/Documents/Programming/Lua/ I am tired of doing that again and again.
1
vote
1answer
37 views

Initializing forge-alist

I am trying to initialize Magit Forge's forge-alist programatically. Therefore I put together my first couple of emacs-lisp code. It looks like the following: (let ((gitlab-install (lambda (host) (...
1
vote
2answers
40 views

How to prevent emacs from converting short form quote ( ' ) to literal “quote” in custom set variables, etc?

I usually use Emacs 27.1, but on a particular remote machine, it has Emacs 26.3 installed instead. After cloning my dotfiles repository onto this remote machine, all of the "custom set variables&...
1
vote
0answers
40 views

Can't access elpa when initializing

I'm trying to install exwm on NixOS 20.09. I use emacs 27.1. My init file: (require 'package) (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ...
0
votes
1answer
43 views

Cannot open .gpg file in emacs after upgrading to 27.1

I was upgraded from RHEL 7.6 to 7.8 last week. After upgrade my emacs (v25.3) was broken and I got the following error: error while loading shared libraries: libMagickWand.so.5: cannot open shared ...
0
votes
1answer
41 views

org-mode-hook is always evaluated

I'd like org-mode to use a particular theme. To this end, I've put the following in my init.el: ;; Setup org-mode theme (defun org_setup() "Setup org-mode" (load-theme 'doom-laserwave) ...
1
vote
1answer
74 views

Emacs can't connect to GNU archive

I'm having a very basic problem with getting my emacs to talk to the GNU package repository. The contents of my .emacs are (require 'package) (package-initialize) (package-refresh-contents) When I ...
0
votes
1answer
46 views

Issue while trying to use chemacs

I am currently trying to use chemacs on my computer, following the instructions given on github, but I do not seem to be able to make it work properly. My goal would be to be able to use both Emacs 24....
1
vote
1answer
34 views

Only run a function if it is a new session

In my init.el file, I have a hook to setup my workspace when I open a particular type file. Specifically, when I open an R file (i.e., *.R) and ESS-mode starts, a couple of other windows open with ...
0
votes
0answers
17 views

Calendar: symbols-function-definition is void: “appt-make-list”

When in the "calendar", typing "d", which runs (diary-view-entries), gives me an error Symbols-function-definition is void: "appt-make-list". It shows the (one) entry for ...
0
votes
1answer
46 views

Why isn't org-agenda skipping DONE tasks?

I'm trying to set up a planning process for the day (like in http://newartisans.com/2007/08/using-org-mode-as-a-day-planner/), but my org-agenda keeps showing DONE tasks, even though I set org-agenda-...
2
votes
1answer
44 views

Some commands in init.el don't run on startup, but others seem to run fine

I am having a very weird issue with my init.el file. At startup, some of the commands in it run fine (so I know Emacs is able to pick the correct file), but others only run when I manually load the ...
0
votes
2answers
55 views

macos environment variables?

I'd like to set things up so that I can use emacs on multiple computers, with the .emacs.d directory shared amongst them (via DropBox). My solution so far has been to use environment variables which ...
0
votes
2answers
41 views

Face setting doesn't work for client sessions

I wanted to change the colours of Anzu's counter, taking the foreground from the Isearch match background and the background from the fringes, like this So I evaluated (face-spec-set 'anzu-mode-line `...
0
votes
0answers
61 views

Error: Symbol's function definition is void: which-key-mode

My init-which-key.el contains the following code, (require 'package) (defun my/which-key-setup () "Startup configuration for which-key." (unless (package-installed-p 'which-key) (...
1
vote
1answer
41 views

Emacs keybinding for switching tab via number

In Emacs 27.1, using tabbar. Trying to switch to tabs using numbers. Editing ~/.emacs with following lines doesn't switch tabs using C-1. Produces C-u 1 and so on. What is missing here? Any other ...
1
vote
1answer
43 views

How to enable mode for all files

What do I put in my init to enable a mode for all files? Say I want to have auto-fill-mode enabled at all times. I've seen this post and some others, but all are focused on a specific task. I'd like ...
0
votes
0answers
35 views

Is it safe to comment out the “custom-set-variables” part in your init file?

Recently I had some font lock mess with auctex (similar to this). To solve the problem I commented out my init file part for part and realized that the problem is inside the custom-set-variables ...
1
vote
0answers
63 views

Cannot figure out why vc-git.elc is always loaded on startup

This is more a curiosity, than a necessity. I'm playing around with startup times, and to have something to compare with, I wanted to see how fast emacs could start up pure. Running emacs -Q, emacs-...
1
vote
1answer
30 views

unescaped character literals detection error

When I reload my init file I get an error (or warning) saying unescaped character literals `?(', `?)', `?[', `?]' detected! What does this error (warning) mean and how can one fix it?
0
votes
1answer
35 views

Change location for straight.el working directories?

I’d like to put my dotConfig files into DropBox, including my .emacs.d folder. I’d like to use these across computers and across OS’s. I’ve split out part of my init.el into per-computer files (...
0
votes
1answer
66 views

Emacs company-css, where is the completion of css values?

Company-mode completion seems a little weak in emacs. Is it my configuration? Property completion seems simple enough: strong { color: red; /* <= color is the property */ } Where red is the ...
0
votes
1answer
41 views

Change `standard-indent` for 1 specific major mode

I author web apps with the web-mode in GNU Emacs, and I use 2 spaces for indentation. After I examined the web-mode source, I found out that the mode defaults to the standard-indent variable, which in ...
0
votes
1answer
98 views

Byte compilation error with use-package

The beginning of my ~/.emacs.d/init.el file looks like this: ;; MELPA (require 'package) (setq package-enable-at-startup nil) (setq package-check-signature nil) (add-to-list 'package-archives '("...
1
vote
3answers
1k views

How can I find my Emacs init file?

I have read the guide found here: How Emacs Finds Your Init File I cannot find any .emacs directory in my home directory. I have show hidden files selected. I also cannot find the init.el file in ...
1
vote
1answer
141 views

Emacsclient not loading init file changes

Context: I just updated Emacs via homebrew; I don't remember the steps I followed to get Emacs to run via daemon originally, but since the update it doesn't seem to be using it anymore (i.e. quitting ...
0
votes
1answer
99 views

Emacs install folder vs .emacs.d vs .emacs/.emacs~ confusion [Windows 10]

I've recently run into complications regarding elpy and setting up virtual environments (see other questions) which have brought me back to a more fundamental issue that I must resolve before I ...
0
votes
1answer
118 views

Force Emacs to start in text mode

[Have been using Emacs for at least 40 years, but still ...] What to put in .emacs so that Emacs opens in text mode? I have tried: (setq initial-major-mode #'text-mode) (setq default-major-mode #'text-...
3
votes
1answer
194 views

Can't get rid of scratch buffer at startup for Emacs 26.3

I am using GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29. In my .emacs I specifically asked not to show the startup screen or buffer *scratch*: (custom-set-variables '(inhibit-startup-...
0
votes
0answers
37 views

How do I reload config in other instances of emacs?

Say, I changed ~/.emacs, but I have another instances of emacs running. I believe unless I do something, they might change the config (because they have a stale notion of its contents), which in turn ...
0
votes
1answer
34 views

org agenda not loading org-agenda-files funkiness

My config file has the following funkiness: I have the line (setq org-agenda-files '("~/org/tktodos.org" )) followed by the line (org-agenda nil "a"). When my org file loads, I can ...
1
vote
1answer
62 views

use-package and dependencies

Given a major mode package foo and foo-x that extends foo, with feature x is there a recommended way to configure them with use-package (assuming :defer t and :ensure t for all? nested use-package (...
0
votes
1answer
32 views

Disable white-space mode emacs-26.3

I tried to highlight lines that exceed 80 columns using whitespace-mode. Eventually didn't like that idea and removed that from my init.el. However, the whitespaces are shown as . and line ends are $ ...
1
vote
0answers
89 views

How to Change the font for org-date face in org-table context?

I like to have a variable font everywhere I can, but some things like tables in org-mode or the org-agenda itself look a little wonky that way, and I get around it by configuring specific fixed width ...
0
votes
0answers
190 views

DOOM Emacs - Automatic company-mode suggestions don't show up

I recently installed DOOM Emacs. I see that company-mode and company-files are installed, but I'm having trouble making them work. Regular auto-completion works on Elisp files (So for example, if I ...
0
votes
1answer
224 views

Launch emacs in eww mode, display local .html file at startup

I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina. I have a twist on a common request. I had the idea to customize the emacs startup screen, but I see those options are ...
0
votes
0answers
20 views

How do I make swoop not default the search to the word at point?

I'd like to do the same as for helm-swoop to not make swoop search at point, only when a word or expression is selected, and only then. In helm-swoop I use: (setq helm-swoop-pre-input-function ...
0
votes
2answers
126 views

Initialization warning after installing doom-modeline

So recently i decided to switch to Emacs (btw I am total noob) and began creating my init.el file After downloading doom-modeline package from melpa and following it's installation guide I get an ...
0
votes
1answer
60 views

How to associate a theme to a file extension?

It is kind of similar to this question How do I automatically load a mode for a specific set of file extensions? So I am in a situation where, when I want to write in TeX, I want to use 'whiteboard' ...

1
2 3 4 5
13