diff options
-rw-r--r-- | tools/emacs-pkgs/tvl/tvl.el | 9 | ||||
-rw-r--r-- | users/tazjin/emacs/config/functions.el | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/tools/emacs-pkgs/tvl/tvl.el b/tools/emacs-pkgs/tvl/tvl.el index 4947f66a65c9..cc50d6b234d4 100644 --- a/tools/emacs-pkgs/tvl/tvl.el +++ b/tools/emacs-pkgs/tvl/tvl.el @@ -25,6 +25,10 @@ "Name of the git remote for gerrit" :group 'tvl) +(defcustom tvl-depot-path "/depot" + "Location at which the TVL depot is checked out." + :group 'tvl) + (defun tvl--gerrit-ref (target-branch &optional flags) (let ((flag-suffix (if flags (format "%%l=%s" (s-join "," flags)) ""))) @@ -67,5 +71,10 @@ rubberstamp operation is dangerous and should only be used in #'magit-push ["r"] (list "P" "push, rubberstamp & submit to Gerrit" #'magit-gerrit-rubberstamp)) +(defun tvl-depot-status () + "Open the TVL monorepo in magit." + (interactive) + (magit-status tvl-depot-path)) + (provide 'tvl) ;;; tvl.el ends here diff --git a/users/tazjin/emacs/config/functions.el b/users/tazjin/emacs/config/functions.el index 907dbe5e1176..6478f88cc1c8 100644 --- a/users/tazjin/emacs/config/functions.el +++ b/users/tazjin/emacs/config/functions.el @@ -41,9 +41,6 @@ (man "configuration.nix")) ;; Open my monorepo in magit -(defun depot-status () - (interactive) - (magit-status depot-path)) ;; Get the nix store path for a given derivation. ;; If the derivation has not been built before, this will trigger a build. |