nit(cli): revise comments wrt site-run-file loading
This commit is contained in:
parent
2bc6dd2a96
commit
515f61295b
3 changed files with 16 additions and 19 deletions
15
bin/doom
15
bin/doom
|
@ -62,17 +62,14 @@
|
|||
;; Put together, plus a strategically placed exit call, the shell will read
|
||||
;; one part of this file and ignore the rest, while the elisp interpreter will
|
||||
;; do the opposite.
|
||||
;; - I intentionally avoid loading site files, so lisp/doom-cli.el can load them
|
||||
;; by hand later. There, I can suppress and deal with unhelpful warnings (e.g.
|
||||
;; "package cl is deprecated"), "Loading X...DONE" spam, and any other
|
||||
;; disasterous side-effects.
|
||||
;;
|
||||
;; But be careful not to use -Q! It implies --no-site-lisp, which omits the
|
||||
;; site-lisp directory from `load-path'.
|
||||
;; - I intentionally suppress loading site files (must be done with '-q
|
||||
;; --no-site-file' NOT '-Q', as the latter omits the site-lisp dir from
|
||||
;; `load-path' too), so lisp/doom-cli.el can load them manually later (early
|
||||
;; in lisp/doom-cli.el). Look there for an explanation why I do this.
|
||||
;; - POSIX-compliancy is paramount: there's no guarantee what /bin/sh will be
|
||||
;; symlinked to in the esoteric OSes/distros Emacs users use.
|
||||
;; - The user may have a noexec flag set on /tmp, so pass the exit script to
|
||||
;; /bin/sh rather than executing them directly.
|
||||
;; - The user may have mounted /tmp with a noexec flag, so pass the exit script
|
||||
;; to /bin/sh rather than executing them directly.
|
||||
|
||||
;; In CLI sessions, prefer correctness over performance.
|
||||
(setq load-prefer-newer t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue