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
54 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 ...
0
votes
1answer
49 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
44 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
31 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. ...
0
votes
1answer
37 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
20 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
42 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
40 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
33 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
28 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, ...
1
vote
1answer
310 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
19 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
37 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
49 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
44 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
33 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
61 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
18 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
74 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
44 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
35 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
35 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
65 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
41 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 (...
0
votes
0answers
15 views

Magit is not able to render the font [duplicate]

I am trying to use Magit but whenever I tried running it, somehow fonts are not rendered properly. I am using MacOS and below is the init.el config. I am using powerline font (Meslo) (use-package ...
1
vote
1answer
97 views

use-package won't load

I use the same configuration of emacs on multiple machines, and I want to use use-package to keep the packages the same on all machines. I have an init file in each machine's home directory that ...
0
votes
0answers
19 views

Mac OSX and remote Emacs sessions, keybindings

I have questions regarding keybindings and cut & paste for Emacs and OSX v10.14.3. I'm hoping there are some Emacs users with similar configurations that can provide guidance as to be productive ...
-1
votes
1answer
41 views

How to make emms only show the name of the current file being played without the path

In the mode line, emms shows the full path to the file being played, how do I change that?
0
votes
0answers
28 views

Unable to call pyvenv-activate from init file

M-x pyvenv-activate <RET> ~/Documents/bitbucket-python-scripts/.env353 <RET> works fine. Elpy Config buffer confirms that. However with the following in ~/.emacs file (require 'package) ...
1
vote
1answer
41 views

Installation of Org-ref slows down start-up

I am super new to Emacs. I just followed the installation section of org-ref. I managed to get a simple citation working by adding bibliographystyle:plain to the file. This is one of the solution one ...
0
votes
1answer
34 views

use-package arguments without use-package

The guide I'm following for lsp-emacs wants me to set these options: ;; Enable scala-mode and sbt-mode (use-package scala-mode :mode "\\.s\\(cala\\|bt\\)$") (use-package sbt-mode :commands sbt-...
0
votes
1answer
78 views

Emacs 26.2 can't load init file from Emacs 25 [closed]

The title already says the question, i had Emacs 25 and compiled Emacs 26.2. Although my ./emacs directory and everything in it exists Emacs 26.2. starts complaining about packages which do not exist, ...
1
vote
1answer
28 views

How to define a function that calls two commands where the first one requires an arguments

I use emms to play music in emacs and I have this function to add a music directory and shuffle it. (defun my-emms-command() "Run `emms-add-directory' and `emms-...
1
vote
1answer
73 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 ...
3
votes
2answers
51 views

Problem with init

Windows 10/ emacs 27.0.50. I try to use <s with TAB to expand to a ‘src’ code block in org files. This doesn't work for me with my config. When I execute Emacs with -q (-no-init-file) and it ...
2
votes
0answers
39 views

Scroll bar area remains, blacked out, after launching with `scroll-bar-mode` disabled

I'm using Emacs in dwm window manager of suckless.org, with the following init.el: (menu-bar-mode 0) (scroll-bar-mode 0) (tool-bar-mode 0) When I launch Emacs, with the command $ emacs, my scroll ...
1
vote
0answers
42 views

How are unrelated modes enabled?

I've been an emacs user for about a year now and I use it for Haskell programming. I chose to go the vanilla emacs route and customized a plain init file as I went along. Over time, however, I ...
2
votes
1answer
58 views

If start with maximized frame, why do windows open top &bottom, not side by side?

I have the following in my .emacs: (add-to-list 'default-frame-alist '(fullscreen . maximized)) And (add-hook 'window-setup-hook (lambda () (find-file "FILE.org") (shell))) ...
0
votes
2answers
97 views

How to create a .emacs.d repository [closed]

I am trying to create a github repo of my .emacs.d/ for a group of students. Basically, I have two choices: A) simply take a "git snapshot" of my entire ~/.emacs.d/ including all the packages in elpa/,...
1
vote
1answer
40 views

LISP command won't work in init.el but works in *scratch*

I've executed the following lines in my scratch buffer (require 'expand-region) (global-set-key (kbd "C-=") 'er/expand-region) and everything worked without any problems, but if I add those same ...
1
vote
0answers
153 views

Remove scrollbar, faster

I like a clean interface. One without the clutter of scroll bars, or menu bars. So, to remove them, I have the following in my init.el (progn (menu-bar-mode -1) (scroll-bar-mode -1) (tooltip-...
2
votes
1answer
317 views

Confused about .emacs vs .emacs.d/init.el

I read somewhere the two files were interchangeable, so I cut/paste the content of the former, shown below, to the latter. But then Xreader was missing when I tried to view a document generated by ...
0
votes
1answer
68 views

On emacs26, is it possible to halt initializing and attach to running emacs-server with init.el?

I'm using emacs26 on macOS and using server-client for the fast initialization. However, it's a bit annoying that a new emacs instance is always spawning when I run "Emacs.app" with SpotLight instead ...
2
votes
1answer
48 views

Rewriting `defadvice' as `advice-add' makes advice ineffective

I am trying to make undo-tree auto compress the history save file. The document suggests adding the following advice (defadvice undo-tree-make-history-save-file-name (after undo-tree activate) (...
1
vote
1answer
25 views

“void-variable” error when adding advice to `kill-ring-save`

I am trying to add an advice to kill-ring-save and kill-region, so that when I call them with no active regions, instead of throwing an error, the line the point is currently on would be marked ...
1
vote
1answer
29 views

(require ) a certain file only when opening a particular file type

I've started using Emacs for Ocaml programming, and used opam for installing some Emacs scripts which enable IDE features. To use these, opam added the following line to my .emacs: (require 'opam-...
0
votes
1answer
74 views

Should I use “require” or “load” when writing my own configuration? [duplicate]

I am following this tutorial, and the author is doing something like this: ~/.emacs.d/init.el ;; add your modules path (add-to-list 'load-path "~/.emacs.d/custom/") ;; load your modules (require '...
1
vote
1answer
450 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 ...