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
29 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
28 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
38 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
24 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
17 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
56 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
49 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
16 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
42 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
29 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
17 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
123 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
35 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
38 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
34 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
29 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 ...
2
votes
1answer
199 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
12 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
34 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
47 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
78 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
30 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 ...
7
votes
3answers
609 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
14 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
25 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
82 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-...
2
votes
2answers
345 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
71 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
37 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 '(...
3
votes
1answer
350 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
81 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 ...
0
votes
0answers
21 views

Desktop save mode and save place for specific emacs arrangement: Disable autosave and different desktop save files

Following this post here: https://stackoverflow.com/questions/3792449/remember-all-opened-files-with-split-windows-and-their-positions-in-emacs and putting these in my custom-set-variables: (custom-...
1
vote
1answer
135 views

Display word count in modeline without lag

Problem Stopped using wc-mode as it is not snappy anymore (as text writing usually is) with text document of 10k words. It appears that it counts the whole buffer after every change which seems to ...
3
votes
1answer
94 views

How to set extra frames in size?

Whenever I open an info entry in emacs (C-h i) an additional frame pops up. On my system, it is too small and I'd love to have it in the top left corner, being wider and longer as it was created by ...
0
votes
0answers
75 views

How to disable loading message, when I use emacs to open a easycrypt *.ec file

I use Emacs GUI in Ubuntu, when I use Emacs to open a easycrypt file, for example a.ec, Emacs will show a loading message at the bottom of the window, I guess it is in the minibuffer, but I am not ...
0
votes
1answer
95 views

How to disable code blocks in an Emacs org-mode init file

My dot emacs config consists of a short init.el file and a very large org file in which I have created dozens of emacs-lisp code-blocks. This works very well for me, especially in terms of ...
0
votes
0answers
77 views

How to get a stack trace for “Eager macro-expansion failure:”

On startup I'm getting this message: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2) How can I find whats causing the warning? --debug-init doesn't do anything in this case as ...
0
votes
0answers
28 views

How could `(package-initialize)` affect the behavior of `org-open-at-point`?

Up until this afternoon, I was able to run org-open-at-point on something like [[file:/Users/apc/Desktop/test%20paper.pdf]] and open the file named "test paper.pdf" in my Desktop. But I'm no longer ...
0
votes
1answer
65 views

bad signature “dash-2.12.0.tar.sig”

I am getting the following error while startup Failed to verify signature dash-2.12.0.tar.sig: No public key for 066DAFCB81E42C40 created at 2019-09-21T23:24:49+0530 using RSA Command output: gpg: ...
0
votes
0answers
33 views

Force org-babel-load-file to execute every time emacs is loaded

I have this code in the init.el file: (org-babel-load-file (expand-file-name "myinit.org" user-emacs-directory)) Which used to generate a myinit.el file every time I start emacs. I would ...
0
votes
0answers
22 views

Fringe value not taking effect until I switch buffers

I'm not quite sure how best to describe what's going on. I have the following lines on my init.el file. (setq-default left-fringe-width 40) (setq-default right-fringe-width 40) I expect this to ...
0
votes
1answer
59 views

M-x compile fortran

I set up M-x compile to automatically run appropriate commands depend on on the file types. For example, for C++ (add-hook 'c++-mode-hook (lambda () (set (make-local-variable '...
0
votes
0answers
70 views

Emacs .el file won't load on startup

I'm trying multiple methods to load an emacs .el file on startup. ('load-file "~/.emacs.d/extra/outline-presentation-mode.el") Also: ('load "~/.emacs.d/extra/outline-presentation-mode.el") Also: ...
0
votes
0answers
378 views

.emacs showing error “Wrong type argument: listp, closed” during start up

I am getting an error Wrong type argument: listp, closed while starting my Emacs. I tried to debug each line and do a M-x eval-buffer during configuration. At at time, it was showing only End of line ...
0
votes
2answers
47 views

What's the right order of the settings on init file?

I've had an annoying moment with emacs (GUI). I'm a newbie and now I'm trying to use emacs for writing, so I need spell checking. Well, the consensus is flyspell. In order to load flyspell when ...
2
votes
1answer
107 views

Debugger entered--Lisp error: (invalid-read-syntax “)”) read(#<buffer *load*>)

Launch Emacs using runemacs --debug-init and the following error occurred. any idea on how to locate the file/script of the error or how to fix it? Thanks in advance. Debugger entered--Lisp error: (...
2
votes
0answers
31 views

Org2Blog and Two Factor Authentication

new Emacs user here. I'm having trouble using org2blog to post to a client's WordPress site. The site has 2FA turned on, and won't let me post with it turned off. I got an application-specific ...
0
votes
0answers
19 views

Prevent el-get updates

use-package package does not deal with packages on EmacsWiki. Therefore in my init file I added el-get too: (use-package el-get :config (el-get-emacswiki-build-local-recipes)) (el-get-bundle dired+...
1
vote
1answer
157 views

“Symbol's value as variable is void: *” using load-file

I have this function in my config file and for some reason, I'm getting this error: Symbol's value as variable is void: *. (defun reload-config() "Reload config.org" (interactive) (load-...
1
vote
1answer
47 views

emacsclientw does not use font specified in init.el (Windows)

Emacs version: GNU Emacs 25.3.1 (x86_64-w64-mingw32) I have set up a shell-script which runs Emacs server at Windows startup as mentioned in Emacs Wiki. I have set up a shortcut on my desktop which I ...

1
2 3 4 5
12