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
1
vote
0answers
16 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
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
1answer
33 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
3k views

Why am I getting an error while downloading Melpa packages in Emacs on Win7 OS

I am using Emacs on a Win7 machine. I have added the Melpa repo. in init.el. When I do M-x list-packages, I do get a buffer listing the packages from Melpa. But, when i try to download them, I get an ...
0
votes
1answer
18 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
24 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
36 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
31 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
0answers
23 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 ...
3
votes
1answer
2k views

Error enabling flyspell mode in Emacs

I use flyspell hunspell for checking my spelling mistakes in Emacs. Recently, when I run M-x flyspell-mode in .org or .tex files I got the following error: Error enabling Flyspell mode: (hunspell ...
0
votes
1answer
38 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
41 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
31 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....
15
votes
3answers
7k 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
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 ...
1
vote
2answers
273 views

How to store an eshell alias in `init.el`?

I like to keep my configuration as self-contained as possible, and I'm wondering whether there's a way to manage eshell aliases in my .emacs file. Is it possible to set up aliases with a function call ...
0
votes
1answer
38 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-...
4
votes
1answer
839 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 ...
2
votes
1answer
41 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
33 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
1answer
1k views

How can I set NeoTree to always show hidden files?

The only way i know to make NeoTree show hidden files is to use neotree-hidden-file-toggle, but this is meant to be used interactively when the NeoTree buffer is the active buffer. Is there a way to ...
0
votes
1answer
52 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
1answer
82 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
1answer
32 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 ...
0
votes
0answers
57 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) (...
0
votes
3answers
648 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 ...
1
vote
1answer
42 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
1answer
34 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
66 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 '("...
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
1answer
2k views

auto-complete-c-headers just works with C. No result with C++

I installed the auto-complete-c-headers package and added the following in my Emacs configuration file ; start auto-complete with emacs (require 'auto-complete) ; do default config for auto-complete (...
0
votes
3answers
1k views

where to put .el files on Windows10 for loading at startup

I'm using emacs as a bog-standard program in Windows, and also from the command line in cygwin. They both use the same installation of emacs. I just grabbed yaml-mode.el off the net but I can't ...
1
vote
0answers
49 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-...
2
votes
2answers
618 views

auto-complete Key binding doesn't work in one emacs mode

I have changed the keybindings for yasnippet and autocomplete so that I can use tab for indentation anywhere in a line without accidentally autocompleting or inserting a snippet. I have this in my ...
1
vote
1answer
20 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
27 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
54 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 ...
2
votes
1answer
371 views

Themes in emacs-nox displaying bottom part of frame black instead of background color

Edit: I tried many themes and it was an issue for all of them so this is not a Zenburn specific issue. Edit: Docker is not part of the issue as there is the same behavior when this is done using just ...
4
votes
1answer
570 views

Under Windows, Emacs cannot handle encodings correctly for subprocesses, can it?

I have two simple text files on my D: drive, as shown below. D:\我.txt I D:\你.txt You After I execute M-x diff and type the correct filenames (Yes, I can input Chinese and filename ...
1
vote
3answers
744 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 ...
3
votes
1answer
452 views

Use system-installed package with spacemacs that depends on MELPA packages

How can I include a package that is available locally on my system that depends on the string library s with spacemacs? I have an company internal package that adds functionality to magit available ...
9
votes
1answer
2k views

Coding System utf-8 on Mac - Which one and why as default?

I want to change my default encoding system from non defined to UTF-8 (I think that would be useful). Now I have seen many different UTF-8 coding systems: mule-utf-8 mule-utf-8-dos mule-utf-8-...
2
votes
1answer
200 views

Problem evaluating a `sage-shell-mode` function through `ob-sagemath`

I'm trying to use sage-math within an org-mode file. So far I've been able to configure the sage-shell-mode package (I'm impressed that sagemath can be installed in Debian using the package manager), ...
1
vote
1answer
105 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 ...
2
votes
1answer
542 views

org-agenda-files not setting after update?

I recently upgraded to emacs 25.1.1 and noticed my org setup wasn't working as usual. in my init.el I have: (setq org-directory "~/Dropbox (Personal)/org") (setq org-archive-location "~/Dropbox (...
0
votes
1answer
605 views

File-missing “No such file or directory” “c:/emacs-26.1-x86_64/bin/%HOMEDRIVE%%HOMEPATH%/”

I'm launching Emacs using runemacs on Windows 7, from the emacs directory (C:\emacs-26.1-x86_64\bin), using runemacs --debug-init. I get the following error text: Debugger entered--Lisp error: (file-...
1
vote
1answer
214 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 ...
0
votes
1answer
83 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 ...

1
2 3 4 5
13