Most Popular
1500 questions
169
votes
10 answers
How do I reload a file in a buffer?
I usually work on files which are updated in the file system via version control. What's a quick way to reload a file without having to C-x C-f the file again and getting asked if I want to reload it?

Fernando Briano
- 1,915
- 2
- 14
- 13
135
votes
4 answers
What are the practical differences between the various Emacs Package Repositories?
I notice that there are several different repositories that often contain the same software. Why would I want to prefer:
GNU ELPA
Marmalade
MELPA
over the others? Since any one repository does not contain all the packages that I want, is it a…

Eric Brown
- 3,212
- 4
- 16
- 20
123
votes
13 answers
How to switch between windows quickly?
How do I switch between windows quickly?
I often have multiple windows open and need to switch between them. Right now, I use C-x o to get to the one I want. Is there a more efficient workflow available for this?

Sibi
- 3,603
- 2
- 22
- 35
123
votes
6 answers
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?

Larry Coleman
- 1,465
- 2
- 11
- 10
118
votes
3 answers
How to merge Git conflicts in Emacs
My recent Git merge has resulted in a large number of conflicts. My current approach is to search for the next occurence of '<<<' and then perform the merge by standard text editing.
Question: is there a way Emacs can support merging using the…

Beginner
- 2,661
- 3
- 17
- 25
113
votes
3 answers
How to Restore File System Access in macOS Catalina
I updated to macOS Catalina which requires the user through pop-ups to allow any app trying to access the file system for the first time.
No such pop-up is appearing for Emacs. Running the script shared…

wsaleem
- 1,233
- 3
- 10
- 8
113
votes
9 answers
How can I get a ruler at column 80?
As a programmer, I want to see a ruler at a specific column (usually 80), both so I see when I cross that column, but also to see how close I am getting to it so I can reformat my code early.
The options I have found so far are all not achieving…

Jorgen Schäfer
- 3,899
- 2
- 17
- 19
109
votes
5 answers
What is the difference between Aquamacs and other Mac versions of Emacs?
Macintosh users have several choices of pre-built Emacs. I am aware of the following versions:
YAMAMOTO Mitsuharu's Emacs Mac Port
David Caldwell's Emacs for Mac OS X
Vincent Goulet's Emacs Modified for macOS
David Reitter's Aquamacs
Some…

Eric Brown
- 3,212
- 4
- 16
- 20
108
votes
12 answers
How do I prevent extremely long lines making Emacs slow?
I see hugely varied performance depending on how many newlines there are in the file I'm visiting.
Here's an example. I have two JSON files:
$ wget…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
107
votes
4 answers
How do I get a fancier mode line that uses solid colors and triangles?
People occasionally post screenshots with modelines that have solid colors and triangles:
How do I replicate this effect?

Tikhon Jelvis
- 6,152
- 2
- 27
- 40
101
votes
7 answers
Quickly insert source blocks in org mode
org-mode has the ability to render source code, with blocks of the following syntax:
#+NAME:
#+BEGIN_SRC
#+END_SRC
Is there an existing command to quickly insert these blocks in org-mode,…

Matthew Piziak
- 5,958
- 3
- 29
- 77
99
votes
6 answers
Reading and writing email with emacs
How can we use emacs to read and write email?
This question is intended to provide a canonical landing point for users wanting to deal with email using emacs.
Please post only one package/solution per answer, with as much details as you can.…

T. Verron
- 4,233
- 1
- 22
- 55
97
votes
5 answers
Edit file with super-user rights
When you have to edit system files, it's an usual situation that you launched Emacs with a normal user before, so the file will be write-protected. What can I do to gain root privileges? I mean something like M-x sudo from dired.
I don't want to…

smonff
- 1,575
- 1
- 15
- 20
93
votes
6 answers
How to maximize my Emacs frame on start-up?
Is there a way to maximize my window on start-up?
Currently, I hit Control++Up on my keyboard but it is very bothersome to do that every time.
I am using Emacs 24.4 on Ubuntu 12.04.

programking
- 7,064
- 9
- 41
- 62
89
votes
4 answers
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 through custom.el.
I typically use custom.el to…

J David Smith
- 2,635
- 1
- 16
- 27