diff options
author | Vincent Ambo <tazjin@google.com> | 2020-06-03T01·30+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-06-03T01·31+0100 |
commit | cc2409702965300d00ca39f0b74d2f5474b5a476 (patch) | |
tree | 0b7852350bb1577a56644ef10ef7d5a5acf7c412 | |
parent | 54b9925b931afbc762e03cced13e23d2b90427c2 (diff) |
feat(3p/emacs): Check in derivation for explain-pause-mode r/879
This mode makes it possible to track down slowness in Emacs functions across the board. https://github.com/lastquestion/explain-pause-mode Very useful for some things I need to debug ...
-rw-r--r-- | third_party/emacs/explain-pause-mode.nix | 20 | ||||
-rw-r--r-- | tools/emacs/default.nix | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/third_party/emacs/explain-pause-mode.nix b/third_party/emacs/explain-pause-mode.nix new file mode 100644 index 000000000000..60e0cd149881 --- /dev/null +++ b/third_party/emacs/explain-pause-mode.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: + +let + inherit (pkgs) emacsPackages fetchFromGitHub; +in emacsPackages.melpaBuild { + pname = "explain-pause-mode"; + version = "0.1"; # master on 20200603 + + recipe = builtins.toFile "recipe.el" '' + (explain-pause-mode :fetcher github + :repo "lastquestion/explain-pause-mode") + ''; + + src = fetchFromGitHub { + owner = "lastquestion"; + repo = "explain-pause-mode"; + rev = "35f7d780a9c164b5c502023746473b1de3857904"; + sha256 = "0d9lwzqqwmz0n94i7959rj7m24265yf3825a5g8cd7fyzxznl1pc"; + }; +} diff --git a/tools/emacs/default.nix b/tools/emacs/default.nix index abd4df4d9a60..de53270393be 100644 --- a/tools/emacs/default.nix +++ b/tools/emacs/default.nix @@ -111,6 +111,7 @@ let depot.third_party.emacs.exwm depot.third_party.emacs.rcirc depot.third_party.emacs.vterm + depot.third_party.explain-pause-mode ])))); in lib.fix(self: l: f: third_party.writeShellScriptBin "tazjins-emacs" '' export PATH="${emacsBinPath}:$PATH" |