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
43
votes
3answers
4k views

What can I do to speed up my start-up?

What are some basic things I could do to reduce the start-up time? Is there anything in particular I should pay attention to, for that matter? Note: Startup time can be mitigated by starting Emacs ...
8
votes
6answers
10k views

How do I get my initial frame to be the desired size?

I have the following in my .emacs file: (when window-system (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 91 63)) The value of 63 is supposed to make my initial ...
1
vote
3answers
584 views

How do I keep all emacs dotfiles in one directory?

I would like to keep all emacs related stuff (backup files, emacs-places, ido-last, etc.) in one place, namely ~/.emacs.d directory. Is there general option for this or I have to set it individually ...
5
votes
1answer
302 views

How can I make encrypted messages readable in my sent folder

I'm using Mu4e to send emails. When I encrypt a message, it is encrypted with the receiver's public key and since I don't have the corresponding private key I can't read the message. Naturally, I ...
5
votes
3answers
870 views

How to open and rename several multi-term buffers on start-up?

After each reboot, I have to painfully re-create and rename the multi-term buffers I use in my daily routine. I am completely new to Lisp, but nonetheless, I searched for similar problem on the web ...
7
votes
3answers
6k views

How to debug startup problem, if `--debug-init' has no effect

When I launch Emacs24 (in an Ubuntu machine) I get an error message in the init procedure. Warning (initialization): An error occurred while loading `/home/nivaca/.emacs': But when I launch it with ...
1
vote
1answer
281 views

Interpret where error is from --debug-init when trying to require go-mode

I'm trying to install go-mode in emacs (http://dominik.honnef.co/posts/2013/03/writing_go_in_emacs/) but am having trouble and I'm not sure if the problem is with my .emacs file or with the go-mode el....
2
votes
3answers
1k views

install multiple packages from my .emacs file [duplicate]

I share my .emacs file between machines, which works great but I use a lot of packages and when emacs starts on a new machine with the .emacs it complains about the missing package. I can ignore it ...
6
votes
1answer
3k views

How should I configure irony-mode if my project has no “compilation flags”?

irony-mode is: an Emacs minor-mode that aims at improving the editing experience for the C, C++ and Objective-C languages. It works by using a combination of an Emacs package and a C++ program (irony-...
19
votes
4answers
8k views

How to setup default windows at startup?

Every time I open up Emacs I tend to set up 3 windows by doing C-x 3 (split-window-right) and then C-x2 (split-window-below). After that I have to switch to each window to open the files I want to ...
11
votes
2answers
2k views

project specific init file

I have some customizations for emacs that I'd like to use for a single project, but not affect emacs globally. Is there any way I can have emacs load a specific init file when launched from a certain ...
21
votes
3answers
1k views

How to gracefully handle errors in init file

I would like a way to catch errors when running my init file, and then handle them gracefully. A lot of my most important customizations and keybindings show up at the end of my init file to make sure ...
27
votes
2answers
3k views

What's the fastest way to reload my .emacs file when I make changes so all my affected buffers will pick up those changes?

I'm aware of C-x C-e which is eval-last-sexp and M-x eval-buffer, but these aren't always sufficient to pick up all changes. Sometimes you need to actually close buffers that are in the modes who have ...
14
votes
5answers
2k views

How do I “group” hooks?

There are certain things like the display of trailing whitespace, display of buffer boundaries, rainbow-colored delimiters and many more I'd like to enable in most modes or rather, all programming- ...
11
votes
4answers
2k views

How to change default minibuffer message?

After the init file has done loading I get this message in the minibuffer: For information about GNU Emacs and the GNU system, type C-h C-a. What is it being triggered by and how do I change it?
2
votes
5answers
281 views

Is init.el used for emacs, when emacs is viewed as an editor or as an interpreter of elisp?

If I am correct, emacs is both an editor and an interpreter (or compiler?) of the elisp language. Is emacs init.el used for emacs as an editor or as an interpreter of elisp? If we use Emacs as an ...
5
votes
1answer
2k views

Setting and activating the default input method

How can I configure Emacs to set the default input method for all new buffers? I'd like to use polish-slash everywhere. I use Emacs 24.3.1. I am interested in a solution which could be pasted into ...
60
votes
12answers
7k views

Synchronize packages between different machines

I use emacs in different places and I want to have a similar setup and packages installed everywhere. I guess I can use a version control repository for the setup files. Since I use Prelude, that ...
2
votes
2answers
2k views

“Symbol's value as a variable is void: defun” when reloading .emacs?

I am always editing my .emacs file, and I was just wondering if I could reload it without restarting Emacs? Note: I have tried M-x load-file and choosing the .emacs file, but I get this error ...
66
votes
8answers
5k views

What should/shouldn't I do when keeping .emacs and .emacs.d in version control?

Like many people, I manage a lot of my dotfiles via a version control repository (Mercurial on Bitbucket, private, in my case). This is handy when setting up a new machine or propagating ...
75
votes
4answers
14k views

Advantages of setting variables with setq instead of custom.el?

I see a lot of people (extension authors and others) give configuration examples with setq: (setq foo 'bar) These parameters are often defined with defcustom, making them available for customization ...
9
votes
1answer
554 views

Overriding fill-paragraph in LaTeX mode

I would like to change the behavior of fill-paragraph in certain modes (e.g. LaTeX-mode provided by AucTeX). I could just rebind the key M-q, but I am also using evil-mode whose implementation of ...
116
votes
6answers
19k views

Are there any advantages to using ~/.emacs.d/init.el instead of ~/.emacs?

I've normally used ~/.emacs for my config file, but I've noticed others using ~/.emacs.d/init.el. Are there advantages to the init.el location? Any disadvantages?

1
9 10 11 12
13