From cdc18c025a519c23fa4dd9e14781349fcdf4035f Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 27 Jan 2022 22:15:40 -0800 Subject: refactor(wpcarro/emacs): Drop support for vendor directory I don't think this is worth lugging around anymore. Additionally: drop usage of `builtins.path`. I originally started using `builtins.path` because a blog post about Nix style recommended it (I cannot remember which), but I'm starting to think this is a bit too verbose for my taste, and I forget what the benefits are. Change-Id: If6579f28bac56ad7afec2c5d5a5e4828601c93c3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5083 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/default.nix | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'users/wpcarro/emacs/default.nix') diff --git a/users/wpcarro/emacs/default.nix b/users/wpcarro/emacs/default.nix index 2986dd7b5139..40e6f8d65d29 100644 --- a/users/wpcarro/emacs/default.nix +++ b/users/wpcarro/emacs/default.nix @@ -119,30 +119,8 @@ let emojify ])); - vendorDir = path { - path = ./.emacs.d/vendor; - name = "emacs-vendor"; - }; - - # TODO(wpcarro): byte-compile these by packaging each as an Elisp library. - wpcDir = path { - path = ./.emacs.d/wpc; - name = "emacs-libs"; - }; - - wpcPackageEl = path { - path = ./.emacs.d/wpc/wpc-package.el; - name = "wpc-package.el"; - }; - - initEl = path { - path = ./.emacs.d/init.el; - name = "init.el"; - }; - loadPath = concatStringsSep ":" [ - wpcDir - vendorDir + ./.emacs.d/wpc # TODO(wpcarro): Explain why the trailing ":" is needed. "${wpcarrosEmacs.deps}/share/emacs/site-lisp:" ]; @@ -162,7 +140,7 @@ let --no-init-file \ --no-site-file \ --no-site-lisp \ - --load ${initEl} \ + --load ${./.emacs.d/init.el} \ "$@" ''; in { -- cgit 1.4.1