Paquet “keycast” pour les raccourcis clavier
Voila la solution pour avoir une vue sur vos raccourcis clavier dans la modeline.
Capture d’écran

Code
(use-package! keycast :commands keycast-mode :hook (after-init . keycast-mode) ;; démarrer le mode après le démarrage d'emacs :config (define-minor-mode keycast-mode "Voir la commande courante et son raccourci clavier dans la modeline" :global t (if keycast-mode (progn (add-hook 'pre-command-hook 'keycast-mode-line-update t) (add-to-list 'global-mode-string '("" mode-line-keycast " "))) (remove-hook 'pre-command-hook 'keycast-mode-line-update) (setq global-mode-string (remove '("" mode-line-keycast " ") global-mode-string)))) (custom-set-faces! '(keycast-command :inherit doom-modeline-debug :height 0.9) '(keycast-key :inherit custom-modified :height 1.1 :weight bold)))
Sources
- https://github.com/tarsius/keycast/tree/038475c178e90c7bad64d113db26d42cad60e149
- https://tecosaur.github.io/emacs-config/config.html