Questions tagged [provide]
4 questions
7
votes
2 answers
Why is it convention to have `(provide )` at the bottom of the file?
I've been looking through some elisp libraries and most calls to provide happen at the end of the file. In clojure the ns is quite similar to provide.
I've noticed that putting provide at the top of the file makes no difference. Is there a reason…

zcaudate
- 637
- 4
- 14
4
votes
1 answer
Should I use "require" or "load" when writing my own configuration?
I am following this tutorial, and the author is doing something like this:
~/.emacs.d/init.el
;; add your modules path
(add-to-list 'load-path "~/.emacs.d/custom/")
;; load your modules
(require 'setup-foo)
(require…

nalzok
- 665
- 6
- 18
1
vote
1 answer
Transitive `require`s don't work `--with-native-compilation`?
Consider:
;;; a.el
(defun a () nil)
(provide 'a)
;;; b.el
(require 'a)
(defun b () nil)
(provide 'b)
In traditional Emacs this byte compiles fine:
;;; use.el
(require 'b)
(a) ;This is automatically available "transitively" (without…

Greg Hendershott
- 1,483
- 12
- 17
0
votes
1 answer
Does `provide` conflict with `use-package`?
I just install use-package yesterday and still learning it. I notice use-package is not working in my environment:
Here is my init file:
(require 'package)
(dolist (url '(("melpa" . "https://melpa.org/packages/")
("melpa-stable" .…

ccQpein
- 123
- 5