diff options
Diffstat (limited to 'tools/emacs-pkgs/tvl')
-rw-r--r-- | tools/emacs-pkgs/tvl/OWNERS | 3 | ||||
-rw-r--r-- | tools/emacs-pkgs/tvl/default.nix | 10 | ||||
-rw-r--r-- | tools/emacs-pkgs/tvl/tvl.el | 32 |
3 files changed, 45 insertions, 0 deletions
diff --git a/tools/emacs-pkgs/tvl/OWNERS b/tools/emacs-pkgs/tvl/OWNERS new file mode 100644 index 000000000000..9473d17bd557 --- /dev/null +++ b/tools/emacs-pkgs/tvl/OWNERS @@ -0,0 +1,3 @@ +inherited: true +owners: + - glittershark diff --git a/tools/emacs-pkgs/tvl/default.nix b/tools/emacs-pkgs/tvl/default.nix new file mode 100644 index 000000000000..3f230aef3c0c --- /dev/null +++ b/tools/emacs-pkgs/tvl/default.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +with pkgs.emacsPackages; + +trivialBuild rec { + pname = "tvl"; + version = "1.0"; + src = ./tvl.el; + packageRequires = [ magit ]; +} diff --git a/tools/emacs-pkgs/tvl/tvl.el b/tools/emacs-pkgs/tvl/tvl.el new file mode 100644 index 000000000000..31d1143188be --- /dev/null +++ b/tools/emacs-pkgs/tvl/tvl.el @@ -0,0 +1,32 @@ +;;; tvl.el --- description -*- lexical-binding: t; -*- +;; +;; Copyright (C) 2020 Griffin Smith +;; +;; Author: Griffin Smith <grfn@gws.fyi> +;; Version: 0.0.1 +;; Package-Requires: (cl-lib magit) +;; +;; This file is not part of GNU Emacs. +;; +;;; Commentary: +;; +;; This file provides shared utilities for interacting with the TVL monorepo +;; +;;; Code: + +(require 'magit) + +(define-suffix-command magit-push-and-submit () + (interactive) + (magit-push-refspecs + "origin" "HEAD:refs/for/master%l=Code-Review+2,publish-comments,submit" + nil)) + +(transient-append-suffix + #'magit-push + ["r"] + + (list "P" "Push and submit to gerrit" #'magit-push-and-submit)) + +(provide 'tvl) +;;; tvl.el ends here |