Skip to content

liuyinz/mise.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mise

License GPL 3 MELPA

A GNU Emacs library which uses the mise tool to determine per-directory/project environment variables and then set those environment variables on a per-buffer basis.

Heavily inspired from envrc which created by Purcell.

Contents

Install

dependencies

package

  • Manually

Clone and add to load-path, require the package.

  • Melpa

This package is available on MELPA. Install with M-x package-install RET mise within Emacs.

Usage

;; Directly
(require mise)

;; enable globally
(add-hook 'after-init-hook #'global-mise-mode)

;; or turn on in some buffer
(add-hook 'emacs-lisp-mode-hook #'mise-mode)

Customization

  • mise-update-on-eshell-directory-change: enable it would update environment when changing directory in eshell.

  • mise-exclude-predicate: conditional function to exclude buffers which shouldn't turn on mise-mode.

  • mise-auto-propagate-commands: list of commands which running with mise environment activated.

Todo

  • support more options in mise cli

Donate

If you think the it's helpful for you, please consider paying a cup of coffee for me. Thank you! 😄

PayPal

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages