2 ms·
You can define custom touch bar buttons with BetterTouchTool (https://folivora.ai/ https://folivora.ai/), and configure them to run a custom shell script. There
by roryokane 8y ago
You can define custom touch bar buttons with BetterTouchTool (https://folivora.ai/ https://folivora.ai/), and configure them to run a custom shell script. There is probably some way to call Emacs functions via shell script.
However, be warned, BTT’s interface is messy and the buttons it creates don’t look right unless you manually adjust the styling yourself. Also, macOS won’t show BTT’s buttons unless you either allow BTT to take over your whole Touch Bar, hiding Apple’s global buttons, or you expand the BTT toolbar beforehand, which must be closed before you next try to press the Esc key.