Most Popular
1500 questions
10
votes
2 answers
How to truly unbind ALL global keybinds?
I've just tried
(set 'global-map (make-sparse-keymap))
but issuing C-hb still shows tons of crap, especially in the Global Bindings section:
Global Bindings:
key binding
--- -------
C-@ set-mark-command
C-a …

Alexander Shukaev
- 1,125
- 10
- 22
10
votes
2 answers
How do I work out what the problem is with the emacs package system?
I am trying to set up emacs (on cygwin / Win10) to handle JSON.
I started with joshwnj/json-mode and was stoked to discover that emacs will now install its own dependencies from online repos. Fab stuff.
I can run M-x package-install but I notice…

Adam
- 241
- 2
- 7
10
votes
2 answers
Open SVG files in XML mode
When opening a vector icon text file for editing, Emacs first tries to display it as an image. That is wrong ; If the file has errors, Emacs (25.3.2 - x86_64-pc-linux-gnu, GTK+ Version 3.18.9) crashes miserably. Well, I know it has errors, that why…

yPhil
- 963
- 5
- 22
10
votes
3 answers
Disable auto id generation in org-mode html export
How can I disable inclusion of ids when exporting file as html
Say for example, in the following file I have disabled toc
#+TITLE: Using org-mode
#+HTML_DOCTYPE: html5
#+OPTIONS: toc:nil html-style:nil html-scripts:nil
* Where to start
** Let’s…

Mohammed Sadiq
- 261
- 2
- 8
10
votes
2 answers
Dired. First show list of folders
Windows 10, Emacs 25.1, Dired+
Here example of my folder's content:
As you can see the files and folder are mixed. But I want first to show list of folders and after show list of files.
Is it possible?
With respect to the answer by @Drew:
I…

a_subscriber
- 3,854
- 1
- 17
- 47
10
votes
1 answer
How can I automatically close buffers when the underlying file is deleted?
I leave Emacs running all day, and will often will do a lot of file system manipulation on files that are open in Emacs buffers. For example, I might switch to a different branch in Git that has a very different directory structure.
Unfortunately…

levand
- 275
- 1
- 6
10
votes
3 answers
How to jump to matching (double or single) quote of a quoted string?
When cursor on one quote symbol, how to jump to the pairing quote?

AhLeung
- 1,083
- 5
- 14
10
votes
1 answer
How to debug errors in sentinels and during font-lock
When an error occurs inside a process sentinel or during font-locking, then Emacs doesn't show a backtrace even though debug-on-error was previously enabled.
I understand why these errors are caught, the same error might be triggered again while…

tarsius
- 25,298
- 4
- 69
- 109
10
votes
1 answer
How to right align region and/or line?
We can center text with M-x center-region and M-o M-s. Is there something similar for right-alignment?
Example before:
Item 0: value |
Item 100: value …

Mark Karpov
- 4,893
- 1
- 24
- 53
10
votes
2 answers
How do you run pry from emacs
While writing RoR code I often need to run drop into a pry session or a debugger. So I place my binding.pry line in the implementation code and run my spec(s). That works fine if I run the specs in a terminal but from inside Emacs, I get a messy…

Cezar Halmagean
- 145
- 6
10
votes
6 answers
Best way to select a word
I want to select current word under the cursor without using mouse.
After searching this forum, I learned how double click works.
(I noticed that it is a bit complicated and there were no direct key bindings.)
What is the best way to select current…

Peter Hwang
- 211
- 1
- 2
- 6
10
votes
2 answers
What minor mode prints opening paren in the echo area?
This is a really nice feature, but it only displays when inserting a paren, not when changing to a cursor position. Is there an interactive command that I can call to display this? Can I configure it to show up on cursor move?

wdkrnls
- 3,657
- 2
- 27
- 46
10
votes
3 answers
Is it possible to remove matches manually in grep mode?
After running (grep) the grep buffer appears with matches. Some of the matches are not relevant, and it would be good to remove them manually. This way I can use the grep buffer to hold only those matches which are relevant to the current…

cammil
- 509
- 3
- 12
10
votes
3 answers
Installing Emacs from source: 'make' fatal error: 'libxml/tree.h' file not found
I wish to run Emacs from the latest development version.
I've downloaded the latest Emacs development version from https://savannah.gnu.org/projects/emacs (with git clone -b master git://git.sv.gnu.org/emacs.git), ran autogen.sh as suggested here,…

Evan Aad
- 1,461
- 1
- 14
- 29
10
votes
3 answers
How to generate and activate autoloads for local packages?
It is clear that not all local/custom/personal packages should be officially released, and it would be silly to do so just to benefit from built-in package management support. I'm wondering how to generate and activate autoloads for local packages?…

Alexander Shukaev
- 1,125
- 10
- 22