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
21 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
30 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
25 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
33 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
45 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
29 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
37 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 ...
0
votes
0answers
37 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
19 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
26 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
42 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
29 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
52 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
443 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
89 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
82 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
87 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
136 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
36 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
30 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
51 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
29 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
47 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
109 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
119 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
19 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
76 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
46 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' ...
0
votes
1answer
20 views

Why doesn't autocomplete work on MS Windows?

my init.el file content: (require 'package) ;; You might already have this line (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (when (< emacs-major-version ...
0
votes
0answers
181 views

Cannot enable org-roam mode - No EmacSQL SQLite binary available (windows 10)

Cannot make org-roam work under windows 10 because I get "No EmacSQL SQLite binary available". What I've done: Installed org-roam using M-x install-package. Installed emacsql-sqlite3 using M-x ...
0
votes
1answer
39 views

showing lunar and solar ephemerides in Emacs agenda

Is there a way to show the calendar functions for phases of the moon? I know it's an inbuilt function of Emacs, but I have never seen it pop up in my agenda. Thank you, EG
3
votes
1answer
41 views

Toggling minor modes based on other minor modes

I wrote a function to enable some minor modes when another minor mode is enabled: (defun prose-mode() (display-line-numbers-mode) (variable-pitch-mode)) I added prose-mode as a hook for olivetti-...
0
votes
0answers
52 views

use-package and straight.el: can't load a package that exists locally?

I'm using the awesome use-package and the awesome straight.el to manage packages. I'd like to use xahk-mode. I've checked in the 'repos' directory of straight and I can see a folder named xahk-mode ...
0
votes
0answers
30 views

how to save my toolbar items for future sessions?

I performed several google searches on the internet to find a solution for tool-bar item. I tried this code without resulting. Nothing happens. I also tried with Emacs default interface (the same of ...
3
votes
1answer
430 views

How to start emacs with a custom agenda view?

I can start emacs with my org-mode agenda view by putting the following in my init.el file: (org-agenda-list) (delete-other-windows) Or I can start it with my global todo list: (org-todo-list) (...
1
vote
1answer
14 views

Replace a filename in init.el using sed from bash script

So I have different customized themes. Different customized themes are written to a separate custom .el files and get called in the main init.el file. For example: (setq custom-file "~/.emacs.d/...
1
vote
1answer
40 views

Converting init file on Mac/Linux to Windows

I use a package called Deft that needs a directory to store and load files. To define this directory on Mac or GNU/Linux I use the following expression: (setq deft-directory "~/Dropbox/org") When ...
2
votes
1answer
90 views

How to obtain file path from LISP file loaded by command line?

Given you started Emacs passing a LISP file through command line: emacs --load .custom.d/init.el how it could be possible to dynamically obtain custom.el directory location? Since the default init....
2
votes
1answer
137 views

user-init-file Variable Value Doesn't Change

The Goal Place everything related to emacs in ~/.config/.emacs.d What I Have Done Created /usr/share/emacs/site-lisp/site-start.el which contain the following code: (setq user-init-file "~/.config/...
1
vote
1answer
34 views

Auto-refresh magit status only when magit is running

I've seen the post Magit: Auto-refresh “magit-status”, and tarsius recommends the same method from the Magit manual to set magit-after-save-refresh-status to non-nil to the after-save-hook: (add-hook ...
6
votes
3answers
688 views

When use setq or set '

I tried to find an answer to this seemingly simple question, but the swamp (internet) is a big place. In the emacs init file in one case I use: (show-paren-mode t) In another case I use: (set '...
0
votes
0answers
15 views

org-agenda loaded from init.el but not configuration.el (babel)

I structure my configuration with an (org-babel-load-file "~/.emacs.d/configuration.org") so I write my code in the configuration.org and then a configuration.el gets generated. It works with the ...
1
vote
0answers
26 views

Multiple insert point org source code insert

I know that we can customize the source code expansion <s TAB using something like this (add-to-list 'org-structure-template-alist '("s" "#+BEGIN_SRC ? :results raw replace drawer ...
0
votes
1answer
135 views

Symbol's function definition is void: cl-loop

I'm trying to turn off all colored text when using gnu emacs as emacs -nw on linux. This answer gives a snippet of code to use for this purpose: (cl-loop for face in (face-list) do (set-face-...
3
votes
2answers
911 views

How can I set up clang-format in emacs?

When running clang-format-buffer or clang-format-region when a region has been been selected, no change is made to the formatting. However, in *Messages*, I see (clang-format: success). Using clang-...
1
vote
2answers
72 views

Change major mode for buffer without a corresponding file

I want to change the major mode from fundamental-mode to compilation-mode for a buffer which contains some generated output named for eg. *results*. I've tried to add an entry to auto-mode-alist but ...
0
votes
0answers
46 views

Get Emacs Markdown markdown mode to use Rstudio pandoc

I installed markdown mode for Emacs. Now I need it to see a version Pandoc I have on my machine. Markdown Mode for Emacs I put this in my init file and loaded it. (custom-set-variables '(...
4
votes
1answer
663 views

init.el and trampling of custom-set-variables

My new init.el uses require to load various settings that I have organised into directories and files. This is an attempt to tame what was a very large and messy init.el and custom.el file. Also I ...
0
votes
2answers
118 views

enable counsel-projectile by default

I want to enable counsel-projectile-mode by default. I have added (counsel-projectile-mode) to .emacs file as per project's usage guide but it doesn't work; meaning projectile still uses ido for ...

1
2 3 4 5
13