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
|
@ -11,9 +11,11 @@
|
|||
;; still yields a notable benefit. Still, avoid setting it to high here, as
|
||||
;; runaway memory usage is a real risk in longer sessions.
|
||||
(setq gc-cons-threshold 134217728 ; 128mb
|
||||
gc-cons-percentage 1.0) ; DEPRECATED: backported from 29
|
||||
;; Backported from 29 (see emacs-mirror/emacs@73a384a98698)
|
||||
gc-cons-percentage 1.0)
|
||||
|
||||
;; Create all our core directories to quell file errors.
|
||||
;; REVIEW: Remove these later. The endpoints should be responsibile for
|
||||
;; ensuring they exist. For now, they exist to quell file errors.
|
||||
(mapc (doom-rpartial #'make-directory 'parents)
|
||||
(list doom-local-dir
|
||||
doom-data-dir
|
||||
|
@ -1161,8 +1163,7 @@ session.
|
|||
This is done by writing a temporary shell script, which is executed after this
|
||||
session ends (see the shebang lines of this file). It's done this way because
|
||||
Emacs' batch library lacks an implementation of the exec system call."
|
||||
(unless (doom-cli-context-p context)
|
||||
(error "Attempted `doom-cli--restart' without active context"))
|
||||
(cl-check-type context doom-cli-context)
|
||||
(when (= (doom-cli-context-step context) -1)
|
||||
(error "__DOOMSTEP envvar missing; extended `exit!' functionality will not work"))
|
||||
(let* ((pid (doom-cli-context-pid context))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue