💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause void-variable errors now) to save on unnecessary interning and simplify compile-time logic. It accepts any valid form that evaluates to a string now. If you use load!, you need to change its argument to a string! e.g. (load! +my-module) => (load! "+my-module")
This commit is contained in:
parent
bdee28609a
commit
1a452b6842
14 changed files with 48 additions and 56 deletions
|
@ -174,4 +174,4 @@ default/fallback account."
|
|||
;; Sub-modules
|
||||
;;
|
||||
|
||||
(if (featurep! +gmail) (load! +gmail))
|
||||
(if (featurep! +gmail) (load! "+gmail"))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; config/default/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(if (featurep! +bindings) (load! +bindings))
|
||||
(if (featurep! +bindings) (load! "+bindings"))
|
||||
|
||||
|
||||
;;
|
||||
|
@ -79,7 +79,7 @@
|
|||
|
||||
(when (featurep 'evil)
|
||||
(when (featurep! +evil-commands)
|
||||
(load! +evil-commands))
|
||||
(load! "+evil-commands"))
|
||||
|
||||
(when (featurep! +bindings)
|
||||
(defvar +default-repeat-forward-key ";")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; feature/version-control/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(load! +git)
|
||||
;; TODO (load! +hg)
|
||||
(load! "+git")
|
||||
;; TODO (load! "+hg")
|
||||
|
||||
;;
|
||||
(setq vc-make-backup-files nil)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; lang/haskell/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(cond ((featurep! +intero) (load! +intero))
|
||||
((featurep! +dante) (load! +dante)))
|
||||
(cond ((featurep! +intero) (load! "+intero"))
|
||||
((featurep! +dante) (load! "+dante")))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
||||
|
||||
(cond ((featurep! +meghanada) (load! +meghanada))
|
||||
(cond ((featurep! +meghanada) (load! "+meghanada"))
|
||||
;; TODO lang/java +lsp (lsp-java?)
|
||||
;; ((featurep! +lsp) (load! +lsp))
|
||||
;; ((featurep! +lsp) (load! "+lsp"))
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@
|
|||
:match "/screeps\\(?:-ai\\)?/.+$"
|
||||
:modes (+javascript-npm-mode)
|
||||
:add-hooks (+javascript|init-screeps-mode)
|
||||
:on-load (load! +screeps))
|
||||
:on-load (load! "+screeps"))
|
||||
|
||||
(def-project-mode! +javascript-gulp-mode
|
||||
:files "gulpfile.js")
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
(after! tex-site
|
||||
;; Set some varibles to fontify common LaTeX commands.
|
||||
(load! +fontification)
|
||||
(load! "+fontification")
|
||||
(setq ;; Enable parse on load.
|
||||
TeX-parse-self t
|
||||
;; When running TeX, just save, don't ask
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
"The directory where org files are kept.")
|
||||
|
||||
;; Sub-modules
|
||||
(if (featurep! +attach) (load! +attach))
|
||||
(if (featurep! +babel) (load! +babel))
|
||||
(if (featurep! +capture) (load! +capture))
|
||||
(if (featurep! +export) (load! +export))
|
||||
(if (featurep! +present) (load! +present))
|
||||
;; TODO (if (featurep! +publish) (load! +publish))
|
||||
(if (featurep! +attach) (load! "+attach"))
|
||||
(if (featurep! +babel) (load! "+babel"))
|
||||
(if (featurep! +capture) (load! "+capture"))
|
||||
(if (featurep! +export) (load! "+export"))
|
||||
(if (featurep! +present) (load! "+present"))
|
||||
;; TODO (if (featurep! +publish) (load! "+publish"))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; lang/web/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(load! +html)
|
||||
(load! +css)
|
||||
(load! "+html")
|
||||
(load! "+css")
|
||||
|
||||
|
||||
(def-package! web-beautify
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; tools/password-store/test/autoload-pass.el
|
||||
|
||||
(load! ../autoload)
|
||||
(load! "../autoload")
|
||||
|
||||
(defmacro with-passwords!! (buffer-args &rest body)
|
||||
(declare (indent defun))
|
||||
|
|
|
@ -160,4 +160,4 @@ deleted.")
|
|||
;; Hacks
|
||||
;;
|
||||
|
||||
(load! +hacks)
|
||||
(load! "+hacks")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue