Skip to content

Commit

Permalink
mu4e-compose: only use keymap-set when available
Browse files Browse the repository at this point in the history
Was added with emacs 29.
  • Loading branch information
djcb committed Mar 12, 2024
1 parent 9e47a6c commit 0e05ab8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mu4e/mu4e-compose.el
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,9 @@ buffers; lets remap its faces so it uses the ones for mu4e."
(define-key map (kbd "C-c C-u") #'mu4e-update-mail-and-index)
(define-key map (kbd "C-c ;") #'mu4e-compose-context-switch)

(keymap-set map "<remap> <beginning-of-buffer>" #'mu4e-compose-goto-top)
(keymap-set map "<remap> <end-of-buffer>" #'mu4e-compose-goto-bottom)
(when (fboundp 'keymap-set) ;; emacs 29
(keymap-set map "<remap> <beginning-of-buffer>" #'mu4e-compose-goto-top)
(keymap-set map "<remap> <end-of-buffer>" #'mu4e-compose-goto-bottom))

;; remove some unsupported commands... [remap ..] does not work here
;; XXX remove from menu, too.
Expand Down

0 comments on commit 0e05ab8

Please sign in to comment.