Most Popular
1500 questions
22
votes
2 answers
Is there a function to insert the correct `(kbd "...")` by pressing the key?
I'm bored of looking up key names for the kbd function, is there a way to automatically insert the correct key name just by pressing the key?
So for example I want something to do this: I'm typing
(local-set-key |
I run magical-insert-kbd-command,…

dshepherd
- 1,281
- 6
- 18
22
votes
2 answers
Remember permission to execute "risky" local variables
In many of my projects I use .dir-locals.el files to setup project specific variables such as compile commands. Upon opening a file within a directory containing such a file, emacs complains about "risky local variables", specifically:
The local…

elemakil
- 2,517
- 1
- 18
- 26
21
votes
5 answers
How to count characters in buffer including spaces?
I need to see, how many characters contains my text, as I type. I found this pages of Emacs Wiki: Word count, and there is a solution very close to what I need: I used the second solution from this page (Show the number of words in the mode-line),…

Aglavra
- 213
- 1
- 2
- 4
21
votes
3 answers
Show line number on error
Say that emacs throws some error that I don't understand. Or maybe the error says "Symbol's value as variable is void: modes", but there are many occurrences of the symbol modes in my code, so I need some context. Can Emacs be configured to mention…

Jackson
- 1,218
- 9
- 19
21
votes
3 answers
Set column widths in `ibuffer`
Is there a way to customize the widths of the columns in ibuffer? Specifically, I want to widen the Name column to be able to read more of the buffer names before they get truncated. I have tried Buffer-menu-name-width, but it seems that the…

nispio
- 8,175
- 2
- 35
- 73
21
votes
1 answer
How do I debug `Package cl is deprecated`?
While compiling an Elisp package from github, I get the
Warning: Package cl is deprecated
How do I find out what triggers it?
The specific file that triggers this is tiny and has no CL code.
I think there should be a way to turn the warning into…

sds
- 5,928
- 20
- 39
21
votes
2 answers
Display list of words along bottom of frame?
I'd like to display 3 lists of words on separate lines horizontally along the bottom (although top would work too) of every emacs frame I have open. I've thought of 6 ways to do this, and they all have issues:
My first thought was to add a line to…

Joseph Garvin
- 2,061
- 8
- 21
21
votes
3 answers
Reading mailing list archives in Emacs?
I sometimes want to read mailing list archives for projects that I'm not subscribed to. There are nice HTML archives online (e.g. https://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00347.html), but I don't enjoy reading mails in the…
user2005
21
votes
2 answers
Emacs manuals are missing on Debian/Ubuntu
I was expecting the Emacs Lisp Reference Manual at (C-h i m elisp). But there was no menu elisp or lisp there. C-h v and C-h f work fine for variables or functions though. C-h i 5 takes me to file permissions.
What other binding is standard to find…

Pierre B
- 381
- 1
- 4
21
votes
5 answers
Magit: How to show differences within lines
I have a file, I make some changes.
Here how SmartGit shows differences.
As you can see it shows where the difference is within the line. It changes background to red color in concrete position. And it's very good. I don't need to spend time to…

a_subscriber
- 3,854
- 1
- 17
- 47
21
votes
2 answers
Enable ivy fuzzy matching everywhere, except in swiper
I have been using flx-ido-mode for a while and I like it. Ivy can behave the same way by using ivy--regex-fuzzy.
The problem is that swiper will also use fuzzy matching now and in this case I don't really like it (at least not as a default, all the…

B_old
- 717
- 5
- 14
21
votes
2 answers
Removing smart quotes automatically
Especially when copying text from things like Google docs, I would like Emacs to automatically remove smart double quotes, smart single quotes, and all manner of em-dash and en-dash characters, replacing them with their ascii equivalents.
Is there a…

Lee H
- 2,697
- 1
- 16
- 31
21
votes
2 answers
Is there any downside to setting `gc-cons-threshold` very high and collecting garbage when idle?
I added the following two lines to the top of my init.el:
(setq gc-cons-threshold (eval-when-compile (* 1024 1024 1024)))
(run-with-idle-timer 2 t (lambda () (garbage-collect)))
That means that instead of collecting garbage every 800kb of…

Nova
- 1,059
- 9
- 21
21
votes
2 answers
Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial
I had to do quite some diving and hunting through documentation and forums, so I figured I might as well do a Q&A here for others:
How do I enable GnuPG passphrase prompting in the minibuffer? The Emacs 25.1 changelog says:
** pinentry.el allows…

Oliver Scholz
- 846
- 7
- 12
21
votes
1 answer
magit blame: is there an equivalent for "show me the file before this commit" from VC?
VC blame mode has a nifty a hotkey "show me blame of the file before the commit I'm pointing at".
Is there an equivalent in magit?

dottedmag
- 313
- 2
- 6