refactor: minor refactors & commentary revision
* lisp/doom-cli.el: - reference backport source commit. - doom-cli--restart: a type check is all we need here. This is a programmer error, not a user error. * lisp/doom-editor.el (recentf): mention recentf-show-abbreviated (added in emacs-mirror/emacs@32906819ad) * lisp/doom-keybinds.el (doom-init-leader-keys-h): move to doom-after-init-hook, in case the user customizes leader variables in a previous hook (like emacs-startup-hook or after-init-hook). * lisp/doom-start.el: use eval-when! to compile out the section on non-macOS systems (when Doom gets around to compiling its core files, later). * modules/config/literate/autoload.el (+literate-config-file): use file-name-concat instead of string concat. This relaxes the requirement that doom-user-dir end in a /; a requirement I intend to fully phase out. * modules/lang/emacs-lisp/autoload.el (+emacs-lisp-non-package): remove empty map! macro in flycheck-emacs-lisp-check-form. The macro already no-ops at compile-time/in noninteractive sessions sinceb480ed51a3
. * modules/ui/hl-todo/config.el (hl-todo-keyword-faces): revise commentary for default hl-todo keywords. Ref: emacs-mirror/emacs@32906819ad Ref:b480ed51a3
This commit is contained in:
parent
f0431b6fac
commit
1c4217aa27
9 changed files with 42 additions and 34 deletions
25
lisp/doom.el
25
lisp/doom.el
|
@ -86,7 +86,8 @@
|
|||
(concat "Alternatively, either update your $PATH environment variable to include the\n"
|
||||
"path of the desired Emacs executable OR alter the $EMACS environment variable\n"
|
||||
"to specify the exact path or command needed to invoke Emacs."
|
||||
(when-let (command (ignore-errors (file-name-nondirectory (cadr (member "--load" command-line-args)))))
|
||||
(when-let ((script (cadr (member "--load" command-line-args)))
|
||||
(command (file-name-nondirectory script)))
|
||||
(concat " For example:\n\n"
|
||||
" $ EMACS=/path/to/valid/emacs " command " ...\n"
|
||||
" $ EMACS=\"/Applications/Emacs.app/Contents/MacOS/Emacs\" " command " ...\n"
|
||||
|
@ -368,17 +369,17 @@ users).")
|
|||
(setq initial-major-mode 'fundamental-mode
|
||||
initial-scratch-message nil)
|
||||
|
||||
;; PERF: Inexplicably, `tty-run-terminal-initialization' can sometimes take
|
||||
;; 2-3s when starting up Emacs in the terminal. Whatever slows it down at
|
||||
;; startup doesn't appear to affect it if it's called a little later in
|
||||
;; the startup process, so that's what I do.
|
||||
;; REVIEW: This optimization is not well understood. Investigate it!
|
||||
(unless initial-window-system
|
||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||
(add-hook! 'window-setup-hook
|
||||
(defun doom--reset-tty-run-terminal-initialization-h ()
|
||||
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
||||
(tty-run-terminal-initialization (selected-frame) nil t))))
|
||||
;; PERF: Inexplicably, `tty-run-terminal-initialization' can sometimes
|
||||
;; take 2-3s when starting up Emacs in the terminal. Whatever slows it
|
||||
;; down at startup doesn't appear to affect it if it's called a little
|
||||
;; later in the startup process, so that's what I do.
|
||||
;; REVIEW: This optimization is not well understood. Investigate it!
|
||||
(define-advice tty-run-terminal-initialization (:override (&rest _) defer)
|
||||
(advice-remove #'tty-run-terminal-initialization #'tty-run-terminal-initialization@defer)
|
||||
(add-hook 'window-setup-hook
|
||||
(doom-partial #'tty-run-terminal-initialization
|
||||
(selected-frame) nil t))))
|
||||
|
||||
;; PERF,UX: Site files tend to use `load-file', which emits "Loading X..."
|
||||
;; messages in the echo area. Writing to the echo-area triggers a
|
||||
|
@ -437,7 +438,7 @@ users).")
|
|||
;; relevant to our current OS, but `command-line-1' still processes.
|
||||
(unless IS-MAC
|
||||
(setq command-line-ns-option-alist nil))
|
||||
(when (or IS-MAC IS-WINDOWS)
|
||||
(unless (eq initial-window-system 'x)
|
||||
(setq command-line-x-option-alist nil))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue