Skip to content

rodweb/verb-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

verb-env

Multiple environments for your [[https://github.com/federicotdn/verb][verb-mode]].

Installation

Install with straight.el + use-package:

(use-package verb-env
  :straight (verb-env :host github :repo "rodweb/verb-env" :branch "main")
  :custom (verb-env-default "tst")
  :hook (verb-mode . verb-env-mode))

Customizing

variabledescriptiondefault
verb-env-defaultDefault environmentnil
verb-env-environmentsList of variables by environmentnil
verb-env-always-unset-varsAlways unset variables when changing environmentst

Switching environments

verb-env-select (C-c C-r C-a) to select a different environment

Defining file local environment variables

Create a .dir-locals.el file:

((nil . ((eval . (set (make-local-variable 'verb-env-environments)
                      '(("dev" .
                         ((url . "http:https://localhost:3000/api/v1")
                          (api-key . "my_dev_api_key")))
                        ("tst" .
                         ((url . "http:https://my-tst-url/api/v1")
                          (api-key . "my_tst_api_key")))
                        ("stg" .
                         ((url . "https://my-stg-url/api/v1")
                          (api-key . "my_stg_api_key")))
                        ("prd" .
                         ((url . "https://my-prd-url/api/v1")
                          (api-key . "my_prd_api_key")))))))))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published