Skip to content

Commit

Permalink
chore(pkgs/emacs): Clean up some entirely redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Jan 6, 2025
1 parent 5906288 commit 2b5880b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions pkgs/applications/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ let

# Compute the list of leaf-d packages.
package-list = runCommandLocal "package-list" { buildInputs = [ emacsPkgs.emacs ]; } ''
HOME=/tmp SCANNING_PACKAGES=true emacs --batch --quick \
-L ${emacsPkgs.bind-key}/share/emacs/site-lisp/elpa/bind-key-* \
HOME=/tmp emacs --batch --quick \
-l ${./leaf-package-list.el} \
--eval "(leaf-package-list \"${self}/home-config/dotfiles/emacs.d/init.el\")" \
> $out
Expand Down
13 changes: 0 additions & 13 deletions pkgs/applications/emacs/fix-emacs-dashboard.patch

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/applications/emacs/leaf-package-list.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
(defun leaf-package-list (script)
"List packages configured with leaf in SCRIPT."

(defvar leaf-package-list-running-p t)
(defvar leaf-package-list--packages nil)

(defmacro leaf (package &rest args)
Expand Down

0 comments on commit 2b5880b

Please sign in to comment.