[cm6] Add save command to emacs (recompiles doc) (#12742)

GitOrigin-RevId: 10cda3f14411147d0d900f688d9b5017f49d2db2
This commit is contained in:
Mathias Jakobsen 2023-04-24 10:34:39 +01:00 committed by Copybot
parent f409b96f00
commit 17ca11fae0

View file

@ -137,9 +137,13 @@ const customiseEmacsOnce = () => {
emacsSearchCloseListener
)
},
save() {
window.dispatchEvent(new Event('pdf:recompile'))
},
})
EmacsHandler.bindKey('C-s', 'openSearch')
EmacsHandler.bindKey('C-r', 'openSearch')
EmacsHandler.bindKey('C-x C-s', 'save')
EmacsHandler.bindKey('C-a', {
command: 'goOrSelect',
args: [cursorToBeginningOfVisualLine, selectToBeginningOfVisualLine],