Most Popular
1500 questions
10
votes
1 answer
Prevent inserting text at the beginning of a buffer that starts with read-only text
I'm extending an existing Emacs package and I want to make a part of the buffer not editable (read only). In fact, I want to make only one line in the middle of the buffer editable and I use the following snippet for achieving…

Andrii Tykhonov
- 452
- 2
- 13
10
votes
2 answers
How can I make Dired buffer names include the full path?
I often have many dired buffers open, including some for folders that have identical names. Occasionally, this causes me to switch to the wrong one, so I am looking for a way to fix this.
Currently, if I have multiple identically-named folders open…

Scott Weldon
- 2,695
- 1
- 17
- 31
10
votes
3 answers
Is there a way to show/open a file from a URI/URL
Is there some way to download and show a file from a URI/URL?
I now I can use wget and then open the downloaded file and I guess I could even try to write myself a small function to do this.
But most likely someone did before me so is there a…

Random Dev
- 203
- 3
- 7
10
votes
2 answers
Does word syntax take script into account?
I call count-words-region (M-x =) on US/RU/IPA string:
HelloПривheləʊ
The following message is printed:
Region has 1 line, 4 words, and 14 characters.
All symbols have w syntax, but differ in script:
(char-syntax ?H) ; ?w
(char-syntax ?П) ;…

gavenkoa
- 3,352
- 19
- 36
10
votes
0 answers
Cycle through multiple cursors to enter different text at each point?
When multiple cursors has marked multiple points in a buffer you can use C-v (mc/cycle-forward) to cycle through and look through all cursors while typing for all cursors. I'm wondering how to enter different text at each cursor point while…

ebpa
- 7,319
- 26
- 53
10
votes
2 answers
Multiple cursors package makes emacs run slow
I'm using the package Multiple Cursors in an html file and it's awesome for a few cursors but if I create more than 30 or 50 cursors it gets terribly slow and it takes about five or six seconds just to move the cursors.
Am I using it wrong or it…

Fabman
- 578
- 2
- 14
10
votes
1 answer
Change the default visibility of a Magit section
I have a fork of popular repo, I want to be able to keep track of commits being push to that repo while also having my own personal commits to my fork. I don't really want my changes to be merged upstream so I'm fine with merging/rebasing every time…

Ammar Alammar
- 325
- 1
- 7
10
votes
2 answers
How to add complex syntax highlighting in a minor mode?
I'd like to highlight code with various faces in a minor mode.
Here's a screenshot that's close to what I want:
One thing that I'm missing is having the comment chars # in
font-lock-comment-face. The idea is to have comments that "belong"
to an…

abo-abo
- 13,943
- 1
- 29
- 43
10
votes
0 answers
How to investigate "color bleeding"?
I frequently have color-bleed issues in emacs, most often with AUCTeX: all of a sudden and for no apparent reason, the line I'm writing will be fontified as math.
First things first: no, I do not have any lone $ character in a verbatim context.…

T. Verron
- 4,233
- 1
- 22
- 55
10
votes
3 answers
Organize the buffer list?
When you have many buffers opened, they are all shown in the buffer list.
Are they shown in the order of visit, from the latest to the remotest?
Can we organize the buffers in the buffer list somehow? For example resort them by their pathnames?

Tim
- 4,987
- 7
- 31
- 60
10
votes
1 answer
Meaning of CRM column in buffer list from `C-x C-b`?
In the Buffer List, I wonder what the CRM column means and ., *, % and D mean in the column? For example
CRM Buffer Size Mode File
. * .emacs 3294 Emacs-Lisp ~/.emacs
% *Help* …

Tim
- 4,987
- 7
- 31
- 60
10
votes
2 answers
How to open a file with tramp mode when Helm is active?
I recently started using Helm with the configuration below
(require 'helm-config)
(helm-mode 1)
(define-key global-map [remap occur] 'helm-occur)
(define-key global-map [remap list-buffers] 'helm-buffers-list)
(define-key global-map [remap…

Jens Kubieziel
- 681
- 10
- 26
10
votes
1 answer
Can I show a clock in the echo area?
Most of the time my echo area sits empty while the modeline of each of my windows displays plenty of redundant redundant information (current time, system load, and various other buffer-independent pieces of information).
Can I display the current…

Clément
- 3,924
- 1
- 22
- 37
10
votes
3 answers
Evil-emacs: how to select last pasted text (like gv)?
How do I visually select the last pasted text with evil-emacs?
gv reselects the last visual selection. I'd like a function/snippet that does the same for my last pasted text.

The Unfun Cat
- 2,393
- 16
- 32
10
votes
2 answers
Navigate to the source code of built-in functions and variables
Throughout the day I am constantly using C-h f or C-h v (describe-function and describe-variable) to look up documentation for functions and variables. More often than not, if I don't get all the information I need, I will click on the file link at…

elethan
- 4,755
- 3
- 29
- 56