Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
335 views

Persistently setting display-line-numbers to relative in emacs init file

I am attempting to set up the new emacs 26.1 display-line-numbers-mode as described in this comment: hybrid line number mode in emacs? I have added this to my .emacs file: (setq display-line-numbers ...
2
votes
1answer
57 views

M-x menu display like spacemacs

For some reason, I am not getting spacemacs. But I need the feature that when I do M-x, it displays the column of menu of commands, which I can select from using direction keys (Up and Down) and ...
0
votes
1answer
25 views

Can not set font family in init file in Windows

In my .emacs file I have the following: (setq default_font "Office Code Pro D") (when (member default_font (font-family-list)) (set-face-attribute 'default nil :family ...
0
votes
0answers
114 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
41 views

Migrate my init.el to spacemacs

Running emacs 25.2.2. Currently I am trying out spacemacs, primarily because I found the keybindings more intuitive. I needed some stuff from my init.el to move to .spacemacs before I can start using ...
0
votes
0answers
110 views

No Such File or Directory, Global, Error with Company Mode

I'm currently following this guide to expanding my emacs configuration on my Mac OS X system. However, every time I (save-buffer) with C-x C-s, I get the following error message: apply: Searching ...
0
votes
0answers
27 views

How to enable SHIFT+TAB for multi line code region unindentation?

I have found this code which enables both TAB and SHIFT+TAB for code region indentation and unindentation. The problem is SHIFT+TAB doesn't work on multi line codes and also we have to place the ...
2
votes
1answer
44 views

Define a function to execute multiple commands

Here is part of my init.el: (defun xx-devanagari-script () (interactive) (save-excursion (face-remap-add-relative 'default :family "Lohit Devanagari") (text-scale-increase) (text-...
3
votes
1answer
541 views

How to reload .emacs.d/ configuration without restart

When I change any custom configuration file in the .emacs.d/elisp/ directory, I have to quit Emacs and then start it again in order to get my changes applied. Is there any better way?
1
vote
2answers
175 views

How to unbind a key from a command in general.el?

I am using emacs with evil, and space is my leader key, however, space is bind to dired-next-line in dired-mode. So, how can I unbind space, so I can still use it as my leader key in dired-mode, and ...
1
vote
0answers
97 views

Package init and refresh problems

Due to unknown reason(s), the package manager in my Emacs 25.3 cannot refresh properly anymore: whenever I try to do M-x list-packages it throws an error: error in process filter: package-read-...
3
votes
1answer
454 views

How to customize emacs toolbar?

Let say I want to add a Toolbar icon to emacs which when clicked should "Select all" text in the current window. We know for selecting text we can use M-x mark-whole-buffer. How can I use this ...
0
votes
0answers
17 views

why cant emacs fsharp mode display pop-up information nor execute interactively?

When I try to use fsharp to display type signatures and tooltips, the buffer tells me that File 'c:\user\path\[file_name]' not parsed. I've read that this is common when you are using fs files. In ...
0
votes
1answer
233 views

How should I solve “no such directory” error at CDPATH with environmental variable on Windows 10 Emacs?

I have installed GNU Emacs on Windows 10. When I open it, I get an error. Warning (initialization): An error occured while loading 'c:/Users/[redacted]/AppData/Roaming/.emacs.d/init.el': error: No ...
1
vote
0answers
23 views

ESS folding for R6 classes

What is the proper way to install, configure and activate folding of R script files? I followed emacswiki.org/emacs/FoldingMode but it doesn't seems to work. I installed folding.el to .emacs/lisp/. ...
5
votes
1answer
391 views

Is it possible to load Dired+ automatically with use-package?

I'm trying to add dired+ to my init.el with use-package but I can't seem to find the name of dired+ on any of the package repositories ( marmalade, melpa or elpa ). I'd been able to add dired+ after ...
0
votes
1answer
72 views

Fold code using headlines inside org-mode elisp source code block

To manage my config I use org-mode. To manage packages inside this I use use-package. Problem is that there are packages that require a lot of configuration like ibuffer and org-mode. Now I'm looking ...
6
votes
4answers
1k views

Speed up Emacs start-up time

I have seen this thread but my problem is an order of magnitude larger. Also, a newbie, I did not understand much of what was being discussed there. So, this new question. I am running Emacs 25.2.2 ...
0
votes
2answers
145 views

Emacs not loading org-agenda-files on startup

So i've put this in my emacs.org: (setq org-agenda-files (list "~/todo.org")) But whenever i close and reopen Emacs, my org-agenda is empty until i reload my config-File. Is there anything ...
0
votes
0answers
90 views

Changing font size in emacs-nox

This question comes out of the answer I posted to my previous question. Setting the font size to 10 in a terminal's preference solved the issue of the last row being black. But it introduces this ...
2
votes
1answer
95 views

tool-bar in emacsclient

I have the following for ridding of the toolbar on startup in graphical mode in my init configuration: (if window-system (tool-bar-mode -1) ) the issue: it works fine (albeit slow...see this ...
0
votes
1answer
69 views

Symbol's value as variable is void: xah-fly-leader-keymap

I have been enjoying Xah Fly Keys by @XahLee and I am trying to create my own keymap for some org-mode functions. I have read the helpful documentation. I used this section as a template for my ...
1
vote
0answers
113 views

Using Ubuntu Emacs init file on Windows; possible multiple issues

I've seen Manage same init file for Linux and Windows, but it is not quite what I want. Bear with the description of issues and my attempts for resolution. I recently installed Emacs on Windows using ...
0
votes
1answer
37 views

Emacs can not see mode.el in site-lisp

I installed Smalltalk from source which comes with its own mode. The files smalltalk-mode.el and smalltalk-mode.elc are placed in /usr/local/share/emacs/site-lisp/ and this path is in my load-path but ...
1
vote
1answer
145 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 ...
1
vote
4answers
694 views

Configure Hack as default font in .emacs.d/init.el

I would like to configure the default Emacs font in my init.el (as opposed to using M-x customize that a lot of other questions here on Emacs Stack Exchange has already explained). I have tried the ...
0
votes
1answer
546 views

Error (use-package): Failed to install magit: Package `magit-' is unavailable

I am starting to build up a .emacs file to be used as a development environment within Docker containers. I get this error when starting emacs-nox in a Docker container. Error (use-package): Failed ...
3
votes
2answers
1k views

error: Package `use-package-' is unavailable

I am starting to build up a .emacs file to be used as a development environment within Docker containers. I get this error when starting emacs-nox in a Docker container. Warning (initialization): An ...
1
vote
1answer
125 views

Kill initial buffers

I want to kill some buffers created by default, such as the GNU Emacs, but putting: (kill-buffer "*GNU Emacs*") On the .emacs doesn't work. I guess this code is called before the initial buffers are ...
2
votes
1answer
388 views

Symbol’s value as variable is void: Info-default-directory-list

I am getting this error when I start my emacs. It happens even if I comment out my init.el but not when I use the --no-init-file option. Any thoughts on how to debug this issue? If this is a an ...
0
votes
0answers
144 views

Auctex not displaying pdf correctly using pdftools

I am using pdftools with AUCTEX so that I can display output within emacs. I am using a windows system with emacs 25.3. However after compilation I get the following: %PDF-1.5 % 3 0 obj << /...
0
votes
0answers
125 views

Not able to load a color theme from 'init.el' or using 'M-x color-theme-select'

I am trying to get emacs(emacs24) to load with another colortheme (looking to have a 'dark' theme). In my init.el file I have the lines: (eval-after-load "color-theme" '(progn (color-theme-...
0
votes
1answer
76 views

ztree - use-package key bindings

I tried to set key bindings to ztree (dir and diff), but they are not working after the emacs startup (there is no errors). f8 and C-f8 works but not the navigation keys. Pleas help. When I eval my ...
1
vote
2answers
64 views

Proper way to bind multiple commands to the same key

I am curently redoing my Emacs config and I am switching from autocomplete to company-mode. I want to toggle company-complete with TAB. The issue is that when I do so all the other TAB commands do ...
1
vote
0answers
61 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), ...
3
votes
1answer
120 views

`#+NAME:` is ignored unless running Emacs with `-q`

I am trying to export an .org buffer with the following contents: #+CAPTION: My subgraph. #+NAME: fig:subgraph [[/tmp/image-4383FmT.png]] The following latex output is produced: % Created 2018-01-...
1
vote
1answer
132 views

Yasnippets: loading two major modes (`org-mode` and `LaTeX`)

I'm trying to load the yasnippets for the LaTeX mode every time I open an org file. Is it possible? How can this be achieved?
0
votes
2answers
224 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 ...
0
votes
0answers
63 views

Error loading auctex on fresh emacs cygwin install

I have a fresh install on emacs on Cygwin, including the (Cygwin, not emacs) package emacs-auctex. My . emacs file is (load "auctex.el" nil t t) On opening a .tex file, I get the error File mode ...
0
votes
0answers
38 views

Deleting .tex file after exporting to org ->pdf

How can we delete intermediate tex file when I export using latex to pdf from org mode? Kindly help
5
votes
3answers
308 views

init.el - setq or defvar

I want to define a trash directory in my user-init-file but I don't know which way to do this is best or most correct. I currently have something like this: (defvar my-trash-dir (expand-file-name "....
1
vote
1answer
126 views

Loading ~/.emacs: cannot open load file, php-mode

GNU Emacs 24.5.1, installed MELPA, installed php-mode. The directory ~/.emacs.d/elpa/php-mode-20180105.541/ exists. I added the following lines to .emacs: (add-to-list 'load-path "~/.emacs.d/elpa") (...
0
votes
2answers
87 views

init.el: Run function only if no other buffers present

I currently have my *Org Agenda* opening on startup using the following in my init.el: (setq inhibit-splash-screen t) ;; no welcome screen (defun agendafocus() "Focus on agenda at Startup" (org-...
0
votes
1answer
48 views

In what order are Lisp files evaluated in this scenario?

Suppose I structure my Emacs (prelude) customizations like this guy: https://github.com/NicholasKirchner/prelude/tree/master/personal What is the load order of these files (for example)? gnus-init....
1
vote
1answer
166 views

Installed emacs by emacs-bootstrap, got cannot load error and buffer list not work

Using Mac Pro macOS 10.13.1 iTerm2 Has two problems: After installed emacs by emacs-bootstrap, got this error when start it: When try to open buffer list by C-x C-b, it shown this window at bottom ...
0
votes
1answer
75 views

Run keyboard macro after open file?

Is it possible to run a keyboard macro in Emacs right after opening a file? For example, when I open a text file I want to get information in buffer Hello world.
1
vote
1answer
94 views

How do I hide markup in Markdown mode with use-package?

I'd like to hide the markup in my Markdown buffers. I can do that manually using markdown-toggle-markup-hiding. However I'd like to configure this once and for all in my init.el so that I don't have ...
1
vote
0answers
77 views

Emacs really laggy on prog-mode

I noticed Emacs was really laggy on any mode derived from prog-mode two days ago. Before that, everything was fine. I can navigate on a 1000+ lines org-mode file without problem, but I can't even type ...
1
vote
1answer
73 views

Prevent creation of backup org file

Whenever I create an Org file, a ~ backup file is created. How can I prevent this behaviour?
0
votes
2answers
267 views

pdf-tools-install takes a long time on startup

I've installed pdf-tools through MELPA, and it works like a charm. Funnily, and as is documented in the readme, the command pdf-tools-install needs to be run each time if you want pdf-tools to be ...