# Emacs Keybindings

**URL:** https://meta.discourse.org/t/emacs-keybindings/23620
**Category:** Feature
**Created:** [2 Gennaio 2015, 11:29pm UTC](https://meta.discourse.org/t/emacs-keybindings/23620 "2015-01-02T23:29:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bitboxer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitboxer/32/115412_2.png) [@bitboxer](https://meta.discourse.org/u/bitboxer)
#### Post date: [2 Gennaio 2015, 11:29pm UTC](https://meta.discourse.org/t/emacs-keybindings/23620/1 "2015-01-02T23:29:55Z")

</div>

I really love using Discourse. It is really awesome to read a discussion on it. Sadly I have a little problem when joining a discussion. The editor overwrites the default emacs keybindings on my mac with own functionality. For example ^h creates a headline, ^b a bold text. I use the emacs keybindings to enter text because I don’t want to move my hand to the cursor keys.

Is it possible to disable those keybindings?

Ah and another problem with those overwrites: they somehow destroy the undo history. When I press them accidentally, I can’t undo it ☹ .

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3 Gennaio 2015, 10:53am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/2 "2015-01-03T10:53:08Z")

</div>

you would need a user script to disable it. no built in method

---

<div class="post-metadata">

### Author: ![bitboxer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitboxer/32/115412_2.png) [@bitboxer](https://meta.discourse.org/u/bitboxer)
#### Post date: [3 Gennaio 2015, 10:57am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/3 "2015-01-03T10:57:47Z")

</div>

Would you consider to add this as an optional setting for the user?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3 Gennaio 2015, 10:59am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/4 "2015-01-03T10:59:45Z")

</div>

seems too edge casey for me … not sure if I support that

---

<div class="post-metadata">

### Author: ![bitboxer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitboxer/32/115412_2.png) [@bitboxer](https://meta.discourse.org/u/bitboxer)
#### Post date: [3 Gennaio 2015, 11:01am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/5 "2015-01-03T11:01:47Z")

</div>

Can you pinpoint the location in the code that does this so that I can write a userscript for this?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3 Gennaio 2015, 11:05am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/6 "2015-01-03T11:05:48Z")

</div>

somewhere in the composer, don’t know the line off the top of my head.

---

<div class="post-metadata">

### Author: ![bitboxer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitboxer/32/115412_2.png) [@bitboxer](https://meta.discourse.org/u/bitboxer)
#### Post date: [3 Gennaio 2015, 11:28am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/7 "2015-01-03T11:28:20Z")

</div>

Found it. It’s in [MarkdownEditor.Editor.js#1228](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/Markdown.Editor.js#L1228).

But it still would be awesome if there was a setting to overwrite this within Discourse.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [4 Dicembre 2025, 11:33am UTC](https://meta.discourse.org/t/emacs-keybindings/23620/8 "2025-12-04T11:33:26Z")

</div>


