Skip to content

Commit

Permalink
feat(src/env.js): Ensure Emacs env
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 21, 2024
1 parent aaf46a9 commit d2c2edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/core/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports.handler = async (argv) => {
}

process.env.PATH = fs.readFileSync(epf, 'utf8');
process.env.EMACSLOADPATH = fs.readFileSync(lpf, 'utf8');;
process.env.EMACSLOADPATH = fs.readFileSync(lpf, 'utf8');

let proc = child_process.spawn(UTIL.cli_args(cmd), { stdio: 'inherit', shell: true });

Expand Down
1 change: 1 addition & 0 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ global.IS_PKG = path.basename(process.execPath).startsWith('eask');
global.EASK_HOMEDIR = os.homedir().replace(/\\/g, '/') + '/.eask/';

global.EASK_EMACS = process.env.EMACS || process.env.EASK_EMACS || "emacs";
process.env.EMACS = EASK_EMACS; // Set back the value.

/* Titles */
global.TITLE_CMD_OPTION = 'Command Options:';
Expand Down

0 comments on commit d2c2edb

Please sign in to comment.