From d1ee51746111c2456cdd9b9f4416e2356db8e8dc Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 2 Sep 2020 15:01:43 +0100 Subject: Require general.el for packages that depend on it Since I'm calling `(require 'general)` in `wpc-package.el`, which gets called at the beginning of my `init.el` file, all sub-modules have `general`. I originally wanted this, but I'm beginning to rethink that preference. After `script.el` broke my CI because of a missing `general` dependency, I'm fixing it for `buffer.el` and all other modules that consume `general`. --- emacs/.emacs.d/wpc/bookmark.el | 1 + emacs/.emacs.d/wpc/buffer.el | 1 + emacs/.emacs.d/wpc/irc.el | 1 + emacs/.emacs.d/wpc/wpc-clojure.el | 6 ++++++ emacs/.emacs.d/wpc/wpc-company.el | 10 ++++++++++ emacs/.emacs.d/wpc/wpc-dired.el | 1 + emacs/.emacs.d/wpc/wpc-golang.el | 1 + emacs/.emacs.d/wpc/wpc-javascript.el | 6 ++++++ emacs/.emacs.d/wpc/wpc-misc.el | 1 + emacs/.emacs.d/wpc/wpc-org.el | 1 + emacs/.emacs.d/wpc/wpc-package.el | 2 ++ emacs/.emacs.d/wpc/wpc-ui.el | 1 + 12 files changed, 32 insertions(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/wpc/bookmark.el b/emacs/.emacs.d/wpc/bookmark.el index 6384ba88b2b7..2eca628409b1 100644 --- a/emacs/.emacs.d/wpc/bookmark.el +++ b/emacs/.emacs.d/wpc/bookmark.el @@ -26,6 +26,7 @@ (require 'string) (require 'set) (require 'constants) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Constants diff --git a/emacs/.emacs.d/wpc/buffer.el b/emacs/.emacs.d/wpc/buffer.el index dec57687816a..3c78601b79f3 100644 --- a/emacs/.emacs.d/wpc/buffer.el +++ b/emacs/.emacs.d/wpc/buffer.el @@ -33,6 +33,7 @@ (require 'cycle) (require 'struct) (require 'ts) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Library diff --git a/emacs/.emacs.d/wpc/irc.el b/emacs/.emacs.d/wpc/irc.el index ce6f0cfa313b..7ce679cd5008 100644 --- a/emacs/.emacs.d/wpc/irc.el +++ b/emacs/.emacs.d/wpc/irc.el @@ -24,6 +24,7 @@ (require 'macros) (require '>) (require 'password-store) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration diff --git a/emacs/.emacs.d/wpc/wpc-clojure.el b/emacs/.emacs.d/wpc/wpc-clojure.el index db1b3be9bf01..025ef9aab988 100644 --- a/emacs/.emacs.d/wpc/wpc-clojure.el +++ b/emacs/.emacs.d/wpc/wpc-clojure.el @@ -10,6 +10,12 @@ ;;; Code: +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Dependencies +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(require 'general) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/emacs/.emacs.d/wpc/wpc-company.el b/emacs/.emacs.d/wpc/wpc-company.el index 6959b288972a..03535621cf2a 100644 --- a/emacs/.emacs.d/wpc/wpc-company.el +++ b/emacs/.emacs.d/wpc/wpc-company.el @@ -10,6 +10,16 @@ ;;; Code: +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Dependencies +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(require 'general) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Configuration +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; autocompletion client (use-package company :config diff --git a/emacs/.emacs.d/wpc/wpc-dired.el b/emacs/.emacs.d/wpc/wpc-dired.el index f440c5272519..bd2805c7369c 100644 --- a/emacs/.emacs.d/wpc/wpc-dired.el +++ b/emacs/.emacs.d/wpc/wpc-dired.el @@ -16,6 +16,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'macros) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration diff --git a/emacs/.emacs.d/wpc/wpc-golang.el b/emacs/.emacs.d/wpc/wpc-golang.el index 8fe68860bfa5..d73249334f89 100644 --- a/emacs/.emacs.d/wpc/wpc-golang.el +++ b/emacs/.emacs.d/wpc/wpc-golang.el @@ -16,6 +16,7 @@ (require 'prelude) (require 'macros) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration diff --git a/emacs/.emacs.d/wpc/wpc-javascript.el b/emacs/.emacs.d/wpc/wpc-javascript.el index 5ace2d876f86..fca8ed6b46a8 100644 --- a/emacs/.emacs.d/wpc/wpc-javascript.el +++ b/emacs/.emacs.d/wpc/wpc-javascript.el @@ -15,6 +15,12 @@ ;;; Code: +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Dependencies +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(require 'general) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index c8cc1e1a5d5b..1dda82005efc 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -19,6 +19,7 @@ (require 'dash) (require 'constants) (require 'region) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration diff --git a/emacs/.emacs.d/wpc/wpc-org.el b/emacs/.emacs.d/wpc/wpc-org.el index 8d8b76b74ebd..bed4dd067615 100644 --- a/emacs/.emacs.d/wpc/wpc-org.el +++ b/emacs/.emacs.d/wpc/wpc-org.el @@ -16,6 +16,7 @@ (require 'f) (require 'macros) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration diff --git a/emacs/.emacs.d/wpc/wpc-package.el b/emacs/.emacs.d/wpc/wpc-package.el index b6da5505f938..3a363df8ec9b 100644 --- a/emacs/.emacs.d/wpc/wpc-package.el +++ b/emacs/.emacs.d/wpc/wpc-package.el @@ -25,6 +25,8 @@ (package-install 'use-package)) (eval-when-compile (require 'use-package)) +;; TODO: Consider removing this, since I'm requiring general.el in individual +;; modules. (use-package general) (provide 'wpc-package) diff --git a/emacs/.emacs.d/wpc/wpc-ui.el b/emacs/.emacs.d/wpc/wpc-ui.el index d315dca9aeb9..5d11521baf9b 100644 --- a/emacs/.emacs.d/wpc/wpc-ui.el +++ b/emacs/.emacs.d/wpc/wpc-ui.el @@ -22,6 +22,7 @@ (require 'device) (require 'laptop-battery) (require 'modeline) +(require 'general) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration -- cgit 1.4.1