Adding installer script
This commit is contained in:
+5
-2
@@ -34,6 +34,7 @@ void initBuiltins() {
|
||||
}
|
||||
|
||||
void initEditor() {
|
||||
char init_file_path[256];
|
||||
E.cursor_x = 0;
|
||||
E.cursor_y = 0;
|
||||
E.rx = 0;
|
||||
@@ -53,8 +54,10 @@ void initEditor() {
|
||||
|
||||
E.number_of_keybinds = 0;
|
||||
|
||||
|
||||
E.fd_init_file = fopen("config/init.lisp", "r");
|
||||
strcat(init_file_path, getenv("HOME"));
|
||||
strcat(init_file_path, "/.beluga/config/init.lisp");
|
||||
printf("%s\n", init_file_path);
|
||||
E.fd_init_file = fopen(init_file_path, "r");
|
||||
E.ctx = lisp_init();
|
||||
E.env = lisp_env(E.ctx);
|
||||
lisp_lib_load(E.ctx);
|
||||
|
||||
Reference in New Issue
Block a user