nit: minor comment reformatting & revision

This commit is contained in:
Henrik Lissner 2024-03-26 10:39:24 -04:00
parent 639fcc6a2e
commit 7acfb0c77c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
5 changed files with 8 additions and 9 deletions

View file

@ -89,9 +89,9 @@
(user-error (message "Error: %s" (cadr e))
(kill-emacs 2)))
;; UX: Abort if the user is using 'doom' as root, unless ~/.config/emacs is
;; owned by root, in which case we assume the user genuinely wants root to be
;; their primary user account for Emacs.
;; UX: Abort if the user is using 'doom' as root, unless $EMACSDIR is owned by
;; root, in which case we can safely assume the user genuinely wants root to
;; be their primary user account for this session.
(when (equal 0 (user-real-uid))
(unless (equal 0 (file-attribute-user-id (file-attributes doom-emacs-dir)))
(message