Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-mode: C-a should be bound to org-beginning-of-line #1302

Closed
neurolit opened this issue Nov 26, 2020 · 5 comments · Fixed by #1303
Closed

org-mode: C-a should be bound to org-beginning-of-line #1302

neurolit opened this issue Nov 26, 2020 · 5 comments · Fixed by #1303

Comments

@neurolit
Copy link
Contributor

Hi! I'm running the latest Emacs Prelude.

Expected behavior

In org-mode buffers, C-a should be bound to org-beginning-of-line (default keybinding in Org-mode).

Actual behavior

In org-mode buffers, C-h k C-a returns:

C-a runs the command beginning-of-visual-line (found in
visual-line-mode-map), which is an interactive compiled Lisp function
in ‘simple.el’.

It is bound to C-a.

(beginning-of-visual-line &optional N)

If I comment this line, C-a is bound to crux-move-beginning-of-line (default keybinding in Prelude).

(define-key newmap (kbd "C-a") nil)

Steps to reproduce the problem

In an org-mode buffer, C-h k C-a should display org-beginning-of-line and not beginning-of-visual-line (nor crux-move-beginning-of-line).

Environment & Version information

Emacs version

27.1

Operating system

OS X 10.14.6 "Mojave"

@bbatsov
Copy link
Owner

bbatsov commented Nov 26, 2020

Yeah, I guess the hook that unbinds the prelude-mode keybindings is flawed and it actually resets them to the global keybindings instead of those in org-mode. Should be a relatively simple fix, though.

@bbatsov
Copy link
Owner

bbatsov commented Nov 26, 2020

I'm assuming replacing nil with org-beginning-of-line should be enough.

@neurolit
Copy link
Contributor Author

I'll test and if it's OK, I'll submit a PR, if you're OK with that.

@neurolit
Copy link
Contributor Author

Yep, definitely works!

neurolit added a commit to neurolit/prelude that referenced this issue Nov 26, 2020
org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix bbatsov#1302
@neurolit
Copy link
Contributor Author

PR submitted.

bbatsov pushed a commit that referenced this issue Nov 26, 2020
org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix #1302
Parent5446 pushed a commit to Parent5446/.emacs.d that referenced this issue Jan 5, 2021
org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix bbatsov#1302
zacyang pushed a commit to zacyang/prelude that referenced this issue Apr 10, 2021
org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix bbatsov#1302
mklvr pushed a commit to mklvr/prelude that referenced this issue Apr 11, 2023
org-beginning-of-line is the default for C-a keybinding in org-mode.

Fix bbatsov#1302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants