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 windmove disable #1427

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tesujimath
Copy link

@tesujimath tesujimath commented Jan 13, 2025

Because of keybinding clash.

Fixes #1364


Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

Thanks!

Simon Guest added 2 commits January 13, 2025 17:50
@@ -51,6 +51,8 @@
(define-key newmap (kbd "C-c -") nil)
(define-key newmap (kbd "C-a") 'org-beginning-of-line)
(make-local-variable 'minor-mode-overriding-map-alist)
;; windmove bindings clash badly with org mode, so disable them in org mode buffers
(windmove-mode -1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a global minor mode, so you'll disable it everywhere, not just in org-mode with this approach.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I overlooked that, sorry.

So I think there's not a straightforward way to do this, but it will have to be done by manually overriding the keybindings that windmove has installed, by poking into its code and seeing what they are. That's a shame. 😢

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few alternative suggestions how to solve this here https://www.reddit.com/r/orgmode/comments/kyj1zi/using_windmove_with_meta_and_orgmode_conflicts/, but indeed there's no very simple solution.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also a solution suggested by org-mode's team here https://orgmode.org/manual/Conflicts.html

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

Successfully merging this pull request may close these issues.

Emacs 28.1: org-mode shift key shortcuts shadowed
2 participants