Most Popular
1500 questions
10
votes
1 answer
How to quote symbols in a documentation string?
In the Emacs Lisp documentation, I often come across quoted symbols like `buffer-file-name' inside docstrings. The intersting thing here is the style of quoting, by surrounding the symbol name with a backtick and a quote. I was curious where this…

Håkon Hægland
- 3,608
- 1
- 20
- 51
10
votes
1 answer
How to define a good highlight face
I would like to use global-hl-line-mode, but some of my themes lack a good highlight face. Is there a general way to define one (that's not inverse-color)? I would like to maintain syntax highlighting, which has broken in my attempts.

max
- 103
- 1
- 5
10
votes
2 answers
How to find what causes ESS to run very slow?
When working with an iESS session of R and an R file open side-by-side, I noticed extremely slow performance when typing indetifiers. Typing braces and operators is fine, however, when an identifier is typed, there is very significant input lag…

Kristóf Marussy
- 606
- 4
- 10
10
votes
1 answer
Colored git output in eshell
I'm using emacs inside a mintty (configured to say it's xterm-256color) terminal on cygwin. list-colors-display works fine. and colors are displayed in dired listings etc. Now I set the color for git branch current branch to be yellow reverse.…
user6590
10
votes
3 answers
How can I visualize VCS status in dired?
I'm particularly concerned with git, but I imagine this is a good place to use vc. I want to emulate Atom's git integration with its file explorer:
How can I get something like this in dired? I understand there are other tools for simulating a…

Sean Allred
- 6,861
- 16
- 85
10
votes
3 answers
List of GNU Emacs enhancement requests, bugs, and milestones at any given time
In GitHub one can often find, for a given open-source project, the list of issues that have been reported and the estimated time-horizon that is considered for a given fix or enhancement.
Is there an equivalent repository where feature requests and…

Amelio Vazquez-Reina
- 5,157
- 4
- 32
- 47
10
votes
3 answers
Package manager encoding error
Upon running package-list-packages, I get the following error.
These default coding systems were tried to encode text
in the buffer ` *temp*':
(iso-latin-1-dos (3242 . 37326) (3243 . 40165))
However, each of them encountered characters it couldn't…

Matthew Piziak
- 5,958
- 3
- 29
- 77
10
votes
4 answers
How to make org prompt for a timestamp, when changing state of a TODO?
I have so many tasks I do far away from my computer with emacs. Now, when I change state of a TODO, it just logs the current time into the drawer. But the difference with actual time of the event may be many hours, if not days.
Is there a way to…

koddo
- 233
- 1
- 7
10
votes
3 answers
Looking for a simple way to update an alist without introducing degeneracies
In my .emacs file I have code like this:
(setq default-frame-alist
(assq-delete-all 'width default-frame-alist))
(add-to-list 'default-frame-alist
(cons 'width new-width))
The first expression ensures that the second one does…

kjo
- 3,145
- 14
- 42
10
votes
4 answers
How do I inherit from prog-mode, whilst still supporting older emacsen?
I'm writing a major mode for a programming language, but I want to support older Emacs versions. prog-mode is relatively new. I want to inherit from prog-mode if it's defined, but still do something sensible otherwise.
What's the best approach?…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
10
votes
4 answers
How to check whether a buffer is visiting a file?
I'd like to check whether some (say, current) buffer is visiting a file or not. I could say:
(if (buffer-file-name) ...)
but it seems to be not very elegant - what I'm interested in is only the boolean value, not the actual name of the buffer in…

mbork
- 1,647
- 1
- 13
- 23
10
votes
2 answers
Clear secondary selection without using mouse
Occasionally, without meaning to I somehow mash keys or mouse so that I get a secondary selection. I never use the secondary selection so I would always like to get rid of it.
How can I clear the secondary selection without using the mouse?
The…

Croad Langshan
- 3,192
- 14
- 42
10
votes
1 answer
How to search an Arabic word in text without its diacritics/accents?
In Arabic as with some other languages there is what is called diacritics to enhance pronunciation. There is no convention on how many diacritics should be written for a single word. Some use the minimum (which I prefer) just enough to disambiguate…

doctorate
- 1,789
- 16
- 39
10
votes
3 answers
Using UTF8 encoding as default when writing emails
When I want to send an email I composed in Emacs, I press C-c C-c and am always presented with such an error message:
These default coding systems were tried to encode text
in the buffer `2015-02-03_19:08:30_1':
(utf-8-unix (302 . 4194243) (303 .…

Damien Cassou
- 877
- 4
- 14
10
votes
1 answer
How do I prevent one subprocess from starving others?
To be clear, I'm not talking about anything that should require emacs to be multithreaded (though that would probably also solve this). To reproduce:
emacs -Q # I'm running 24.4.1
Make a second frame
Switch back to first frame
M-x shell
M-x…

Joseph Garvin
- 2,061
- 8
- 21