add emacs mode + fontSize slider

This commit is contained in:
Felix Roos 2023-02-19 13:49:55 +01:00
parent 014555fe5d
commit ceb3aa0627
7 changed files with 143 additions and 34 deletions

View file

@ -121,7 +121,7 @@ export function Repl({ embedded = false }) {
const { theme, themeSettings } = useTheme();
const {
state: { vim },
state: { keybindings, fontSize },
} = useStore();
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop, error } =
@ -282,7 +282,8 @@ export function Repl({ embedded = false }) {
<CodeMirror
theme={themes[theme] || themes.strudelTheme}
value={code}
vimMode={vim}
keybindings={keybindings}
fontSize={fontSize}
onChange={handleChangeCode}
onViewChanged={setView}
onSelectionChange={handleSelectionChange}