US international keyboard with dead keys (for typing accentuated letters with a US keyboard)

Configuration: Fedora Asahi Remix 40 with KDE Plasma on Macbook Pro 16-inch 2021 with ANSI US keyboard

I picked US international keyboard during the installation but it was not working at all. The keyboard was just behaving as a standard US keyboard without any dead keys to input accentuated letters:

' followed by e => é
" followed by e => ë

Changing “layouts” in the system settings had no effect.

After some search the following made US international keyboard with dead keys work for me:

# localectl set-keymap us-intl
# reboot

In the meantime, I discovered that many accentuated letters can also be typed by pressing the right option key (probably equivalent to alt-graph) plus a letter:

alt-graph + e => é  
alt-graph + , => ç  

But I prefer the dead key method because it’s easier to remember.