diff --git a/ide-integration.md b/ide-integration.md index 1bfc704..8aa711a 100644 --- a/ide-integration.md +++ b/ide-integration.md @@ -58,6 +58,8 @@ vim.env.PATH = vim.env.HOME .. "/.local/share/mise/shims:" .. vim.env.PATH ## emacs +- Traditional shims way + ```lisp ;; CLI tools installed by Mise ;; See: https://www.emacswiki.org/emacs/ExecPath @@ -65,6 +67,13 @@ vim.env.PATH = vim.env.HOME .. "/.local/share/mise/shims:" .. vim.env.PATH (setq exec-path (append exec-path '("/home/user/.local/share/mise/shims"))) ``` +- Use with package [mise.el](https://github.com/liuyinz/mise.el) + +```lisp +(require 'mise) +(add-hook 'after-init-hook #'global-mise-mode) +``` + ## Xcode Xcode projects can run system commands from script build phases and schemes. Since Xcode sandboxes the execution of the script using the tool `/usr/bin/sandbox-exec`, don't expect Mise and the automatically-activated tools to work out of the box. First, you'll need to add `$(SRCROOT)/.mise.toml` to the list of **Input files**. This is necessary for Xcode to allow reads to that file. Then, you can use `mise activate` to activate the tools you need: