Skip to content

Commit

Permalink
[emacs] fix cycle-spacing mapping
Browse files Browse the repository at this point in the history
Since Emacs 29 `M-SPC` maps to cycle-spacing rather than just-one-space
which means that `[remap just-one-space]` no loger works for remapping
purposes.  Change it to explicit mapping of M-SPC so the setting works
in old and new versions.
  • Loading branch information
mina86 committed Jun 3, 2023
1 parent 9873da0 commit 2a89f1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ perform stripping and behaves as plain `save-buffer'."

;; Just one space

(global-set-key [remap just-one-space]
(lambda () (interactive) (cycle-spacing -1)))
(set-key "\M- " (cycle-spacing -1))

;; Tab - indent or complete

Expand Down

0 comments on commit 2a89f1c

Please sign in to comment.