From cc2409702965300d00ca39f0b74d2f5474b5a476 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 3 Jun 2020 02:30:30 +0100 Subject: feat(3p/emacs): Check in derivation for explain-pause-mode 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 ... --- third_party/emacs/explain-pause-mode.nix | 20 ++++++++++++++++++++ tools/emacs/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 third_party/emacs/explain-pause-mode.nix 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" -- cgit 1.4.1