mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 17:50:32 +00:00
[cm6] Add save command to emacs (recompiles doc) (#12742)
GitOrigin-RevId: 10cda3f14411147d0d900f688d9b5017f49d2db2
This commit is contained in:
parent
f409b96f00
commit
17ca11fae0
1 changed files with 4 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue