ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Missing M-y binding in 20220411.338 (melpa) #517

Open kirill-lapshin opened 2 years ago

kirill-lapshin commented 2 years ago

After upgrading emacs to 28.1 had to upgdate ergoemacs to latest version from melpa and lost M-y bindings. Is it intentional? It used to do isearch-forward with M-Y doing isearch-backward. Now isearch-forward is on C-f, which I guess is more in line with common shortcuts from other apps. If it is an intentional change then it would be worth updating layout picture on https://ergoemacs.github.io/ which lists M-y / M-Y as isearch.

To reproduce, use minimal .emacs:

(require` 'package)
(package-initialize)

(setq ergoemacs-theme nil)
(setq ergoemacs-keyboard-layout "us")
(require 'ergoemacs-mode)
(ergoemacs-mode 1)

For now I've added back M-y / M-Y this way:

(define-key ergoemacs-user-keymap (kbd "M-y") 'isearch-forward)
(define-key ergoemacs-user-keymap (kbd "M-Y") 'isearch-backward)
(define-key isearch-mode-map (kbd "M-y") 'isearch-repeat-forward)
(define-key isearch-mode-map (kbd "M-Y") 'isearch-repeat-backward)