I'm using vanilla emacs and since I'm using a nonstandard keyboard layout, I've used dual-function-keys
to modify the left alt key so it sends left alt if it is tapped and right alt if it is held. I would like emacs to interpret the sent tapped left alt as a command to apply the meta modifier to the next key pressed. The wiki is unclear on whether this is possible [1]. My naive attempts of
(define-key key-translation-map (kbd "<lmeta>") 'event-apply-alt-modifier)
and
(define-key key-translation-map (kbd "<lalt>") 'event-apply-alt-modifier)
didn't seem to work. Is there a way to do this?
[1]: https://www.emacswiki.org/emacs/StickyModifiers