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
14 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
14 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
12 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
39 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
35 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
40 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
36 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
24 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
9 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
34 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
22 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 ...
0
votes
0answers
12 views

Using el-patch on a helper library of package

I am using the dashboard package which allows you to either use your own .png image on your splash page or makes you pick from a set of ascii logos. For some reason, it doesn't allow you to choose ...
0
votes
1answer
36 views

What is this error? “Symbol's value as variable is void: nxml-mode-map” [duplicate]

I want to create a command and a keybind to scan with tidy a full buffer. The keybinding has to be active only when editing XML files. In my ~/.emacs.d/init.el file I've added the following lines: (...
0
votes
0answers
21 views

Tikz packages installation

I am a beginner with Emacs but I have experience with latex before. I want to make a report and I need the use of TIKZ. I was used to use it through "sharelatex" but everything was already there, I ...
0
votes
1answer
35 views

Force function evaluation when setting variable value? [duplicate]

I have these functions defined in my early-init.el. I'm trying to change the location of where my backups are saved and keep getting a Wrong type argument stringp (djm/emacs-cache "backups/"). early-...
0
votes
0answers
59 views

How to enable treemacs visibility on by default?

I have treemacs setup and currently using s-1 for toggle. But I would like to display the treemacs window always during startup. How to make it visible?
3
votes
1answer
120 views

How can I back up my init file with Git?

The docs say to keep the .emacs file in the HOME directory. I'd like to share the file between multiple computers using a git repo. What is the best way to structure the repo without including ...
0
votes
0answers
41 views

Error with `org-super-agenda` in new machine

I just cloned my emacs.d into a new machine. All works as expected except when trying to run a custom agenda view defined using org-super-agenda. The error I get is this: org-super-agenda--make-...
1
vote
1answer
42 views

Config is broken when I use load-user-file

This is my config for org-babel: (use-package org :mode (("\\.org$" . org-mode)) :ensure org-plus-contrib :config (org-babel-do-load-languages 'org-babel-load-languages ...
0
votes
1answer
57 views

In gui, font looks thicker than usual

I started using Emacs a few days ago and facing the problem. I use "M+ 1mn" for programming so I set this for Emacs. But It looks thicker than usual.(in Geany, VSCode, Xfce Terminal ...) How do I fix ...
1
vote
0answers
46 views

How to open two files in two frames on startup?

Here's what I'm trying to make happen: on startup, I want emacs to split vertically into two windows displaying two different files, with my to-do list on the left side of the screen and my notes on ...
0
votes
3answers
116 views

use-package can't load package at startup

When I start Emacs I get the error message Error (use-package): Cannot load counsel But when I open init.el in a buffer and run eval-buffer everything works fine. What I'm doing wrong? My Emacs ...
0
votes
1answer
59 views

How to access the directory of the init.el file from elisp?

Is there a function/variable to access the directory the init file is in? This could be: ~/.config/emacs/ or ~/.emacs.d/, for e.g.
0
votes
2answers
36 views

Symbol's function definition is void: rtags-enable-standard-keybinding [duplicate]

I have just started using emacs and I wanted to setup RTags. Looking at the Usage section int the github repo here, I added the following line to my config (rtags-enable-standard-keybindings c-mode-...
0
votes
1answer
87 views

How to use an Easy PG encrypted custom-file?

So, inspired by this article. I decided to try adding the following to my init.el: (setq custom-file (expand-file-name "secret.el" user-emacs-directory)) (load custom-file) Where the file in ...
4
votes
1answer
160 views

Trying to install auctex via package-install

I am trying to install auctex via M-x package-install RET auctex. Unfortunately after a brief splash of Contacting host: elpa.gnu.org:443, I end up with the message https://elpa.gnu.org/packages/...
0
votes
0answers
48 views

Unsure what to make of the following Emacs prompt to change my init file

Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen: An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el': ...
0
votes
2answers
44 views

Can't enable a file in Version Control RCS in Emacs 26

Trying here to set a file with VC RCS, but I'm having some trouble finding the .el file and enable it. Already managed to download rcs.el from this link, but it isn't being recognized in Emacs. ...
1
vote
1answer
54 views

On Linux/Mac, how to start single instance?

I just want single instance. I just use a simple .emacs for config, which has (use-package server :ensure t :init (server-mode 1) :config (unless (server-running-p) (server-start))) It ...
0
votes
0answers
31 views

Customizing org mode variables in Spacemacs

I am a novice at coding in Emacs (and in general), but I have been using Org Mode in Aquamacs with some success. I'd like to to start using Spacemacs. I've got Spacemacs up and running using the ...
0
votes
0answers
58 views

Loading Spacemacs init.el post-Aquamacs

I have been working with Aquamacs and I would like to take Spacemacs out for a spin. I cloned .spacemacs and created an empty spacemacs file to store my configs later: git clone https://github.com/...
2
votes
2answers
58 views

problem with starting emacs via emacsclient

I have no problems starting Emacs from a terminal, while if I start it from the desktop (I have a desktop file containing emacsclient -ca '') Emacs starts with a putt-ugly font (see below a screenshot)...
1
vote
0answers
69 views

How do you guys use doxygen? [closed]

I'm curious about Doxygen, how do you guys manage documentation in C/C++ projects on emacs? I didn't find a good package that does it consistently. So far I did use gendoxy and doxymacs. I had ...
0
votes
1answer
32 views

Emacs exchanged mutated vowels (german) into octal presentation

i am working with Emacs as my editor for quite a long time. Yesterday, out of the sudden, Emacs presented me all mutated german vowels as octal numbers. I have tried some things, but nothing worked, ...
5
votes
2answers
2k views

Failed to download 'gnu' archive

I tried to install emacs and in an attempt to install MELPA, tried: (this is my init.el file) (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-...
1
vote
0answers
20 views

Mandatory capturing data before every org file is modified

I have to create a list of documents I modified or created in a day. I use org-capture to create it. I use following org capture template to capture the data when I start working on the file ("c"...
2
votes
1answer
40 views

How to launch term at startup in Emacs?

I need to have Emacs open a terminal at start-up automatically (in order to use Fish in the terminal and use Emacs to for example search the Fish output). Normally I do this with 'M-x term'. Is ...
0
votes
1answer
91 views

I see “Unnecessary call to ‘package-initialize’ in init file” but can't find the call to `package-initialize`

I'm running Emacs from HEAD on Mac OS. I installed emacs-plus using the --HEAD argument with homebrew. I did a whole grep for (package-initialize) in ~/.emacs.d/. The only reference I found to it is ...
0
votes
0answers
16 views

Compilation mode doesn't see PATH variable

My problem is simple, I'm working in embedded systems with a RTOS named zephyr. To compile my projects I need some variables set in PATH and the problem is that when I run projectile-compile-project ...
0
votes
0answers
66 views

Difference between .emacs and init.el and the point of (not) keeping multiple init files

The Emacs manual often talk about init.el and .emacs interchangeably, generally referring to them as "the Init File" like so: When you start Emacs, it normally attempts to load your init file. ...
1
vote
2answers
63 views

How to disable ERC connection notifications?

My ERC irc client sends some very annoying messages that fill most of my screen, letting me know that I've connected. I'd like to turn these off. I've tried setting a couple of variables and ...
0
votes
0answers
67 views

Org file is automatically re-arranged

I have an org-file with a todo list organised by weeks, like the following: * Sunday ** DONE Ask in StackExchange. SCHEDULED: <2019-06-28 Fri 13:00-14:00> * Monday ** TODO Get an answer ** ...
0
votes
0answers
32 views

company is not showing popup complete in c/c++

This is my company config The problem is that with python or lisp when I start to type the popup is shown immediately, but in C/C++ this don't occur. However if I type C-n or C-p the completition is ...
2
votes
2answers
145 views

How can I set command-line parameters through `.emacs` file?

Is it possible to set Emacs start-up command-line flags such as -nw and -q in an init file? If it is, how can I do that?
3
votes
1answer
55 views

Can turning on lexical binding in a legacy init file cause problems?

AFAIK turning on lexical binding only affects the current buffer. But if I add lexical scoped code to my crusty old init file which have load and require statements in it (not everything is autoloaded)...
0
votes
1answer
41 views

after-change-functions global value gets set to nil sometimes

I'm facing a strange issue and I don't know how to debug it. In the middle of work after-change-functions just gets set to nil. I use doom-modeline and it installs hooks to after-change-functions to ...
1
vote
1answer
47 views

How to turn typopunct minor mode on globally

I want to be able to use typopunct minor mode globally. I have tried to add (global-typopunct-mode 1) to my init file, like so ;; Typopunct mode (require 'typopunct) (typopunct-change-language '...
0
votes
1answer
86 views

Setq org-agenda-files in Windows

I'm just looking to add files to my org-agenda-variable. I added a single file successfully but am unable to use multiple. With the code below in my .emacs.el file, the agenda buffer shows 0 TODO's ...
0
votes
0answers
21 views

formatting dates in Emacs when run as a daemon

I run Emacs on a Linux (actually Xubuntu 19.04) machine and my localization settings call for an Italian locale. When generating timestamp, however, I'd like to have English months and weekday names....
1
vote
0answers
44 views

Reading frame configuration from file

I'm just trying my hands on emacs lisp. So far I've had some luck, but I'm stuck trying to load my frames configuration into a list. Here's what I'm trying to do... I am saving frames configuration (...