refactor(cli): don't reboot bin/doom on --pager
Also adds comments to explain why we're rebooting (or not) for these settings.
This commit is contained in:
parent
f0a11da072
commit
209092c578
1 changed files with 5 additions and 4 deletions
9
bin/doom
9
bin/doom
|
@ -203,12 +203,12 @@ SEE ALSO:
|
||||||
instead."
|
instead."
|
||||||
(when color?
|
(when color?
|
||||||
(setq doom-print-backend (if (eq color? :yes) 'ansi)))
|
(setq doom-print-backend (if (eq color? :yes) 'ansi)))
|
||||||
|
;; For these settings to take full effect, the script must be restarted:
|
||||||
(when (and (equal (doom-cli-context-step context) 0)
|
(when (and (equal (doom-cli-context-step context) 0)
|
||||||
(or ;; profile
|
(or ;; profile
|
||||||
debug?
|
debug?
|
||||||
emacsdir
|
emacsdir
|
||||||
doomdir
|
doomdir))
|
||||||
pager))
|
|
||||||
;; TODO Implement after v3.0
|
;; TODO Implement after v3.0
|
||||||
;; (when profile
|
;; (when profile
|
||||||
;; (setenv "DOOMPROFILE" profile))
|
;; (setenv "DOOMPROFILE" profile))
|
||||||
|
@ -219,9 +219,10 @@ SEE ALSO:
|
||||||
(setenv "EMACSDIR" emacsdir))
|
(setenv "EMACSDIR" emacsdir))
|
||||||
(when doomdir
|
(when doomdir
|
||||||
(setenv "DOOMDIR" doomdir))
|
(setenv "DOOMDIR" doomdir))
|
||||||
(when pager
|
|
||||||
(setenv "DOOMPAGER" pager))
|
|
||||||
(exit! :restart))
|
(exit! :restart))
|
||||||
|
;; But these don't need a restart:
|
||||||
|
(when pager
|
||||||
|
(setenv "DOOMPAGER" pager))
|
||||||
(when force?
|
(when force?
|
||||||
(setf (doom-cli-context-suppress-prompts-p context) t)
|
(setf (doom-cli-context-suppress-prompts-p context) t)
|
||||||
(doom-log "User requested all prompts be suppressed"))
|
(doom-log "User requested all prompts be suppressed"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue