In org-mode buffers, bind C-a to org-beginning-of-line

org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix #1302
This commit is contained in:
Florian Dufour 2020-11-26 12:01:33 +01:00 committed by Bozhidar Batsov
parent 929e7124db
commit 4fc0f0fab2
2 changed files with 3 additions and 1 deletions

View file

@ -26,6 +26,8 @@
### Bugs fixed ### Bugs fixed
* [#1302](https://github.com/bbatsov/prelude/issues/1302): C-a should be bound to org-beginning-of-line in org-mode buffers
## 1.0.0 (2020-09-15) ## 1.0.0 (2020-09-15)
Initial "stable" release after 9 years of development. Initial "stable" release after 9 years of development.

View file

@ -47,7 +47,7 @@
(set-keymap-parent newmap oldmap) (set-keymap-parent newmap oldmap)
(define-key newmap (kbd "C-c +") nil) (define-key newmap (kbd "C-c +") nil)
(define-key newmap (kbd "C-c -") nil) (define-key newmap (kbd "C-c -") nil)
(define-key newmap (kbd "C-a") nil) (define-key newmap (kbd "C-a") 'org-beginning-of-line)
(make-local-variable 'minor-mode-overriding-map-alist) (make-local-variable 'minor-mode-overriding-map-alist)
(push `(prelude-mode . ,newmap) minor-mode-overriding-map-alist)) (push `(prelude-mode . ,newmap) minor-mode-overriding-map-alist))
) )