Minor refactors & reformatting
This commit is contained in:
parent
7b5baf319b
commit
f604ce6d01
6 changed files with 15 additions and 19 deletions
|
@ -39,7 +39,6 @@ and `format!' into colored output, where COLOR is any car of this list.")
|
|||
(class . doom--output-class)
|
||||
(indent . doom--output-indent)
|
||||
(autofill . doom--output-autofill)
|
||||
|
||||
(success . (lambda (str &rest args)
|
||||
(apply #'doom--output-color 'green (format "✓ %s" str) args)))
|
||||
(warn . (lambda (str &rest args)
|
||||
|
|
|
@ -48,15 +48,17 @@ in."
|
|||
|
||||
;; REVIEW Refactor me
|
||||
(print! (start "Checking your Emacs version..."))
|
||||
(cond
|
||||
(EMACS28+
|
||||
(warn! (concat "Emacs %s detected. Doom support this version, but you are living on "
|
||||
"edge! Be prepared for breakages in future versions of Emacs.")
|
||||
emacs-version))
|
||||
((= emacs-major-version 26)
|
||||
(warn! (concat "Emacs %s detected. Doom is dropping Emacs 26.x support in June 2021. "
|
||||
"Consider upgrading to Emacs 27.1 (or better: 27.2) soon!")
|
||||
emacs-version)))
|
||||
(print-group!
|
||||
(cond
|
||||
(EMACS28+
|
||||
(warn! "Emacs %s detected" emacs-version)
|
||||
(explain! "Doom supports this version, but you are living on the edge! "
|
||||
"Be prepared for breakages in future versions of Emacs."))
|
||||
((= emacs-major-version 26)
|
||||
(warn! "Emacs %s detected" emacs-version)
|
||||
(explain! "Doom is dropping Emacs 26.x support in June 2021. Consider "
|
||||
"upgrading to Emacs 27.1 (or better: 27.2) soon!"
|
||||
emacs-version))))
|
||||
|
||||
(print! (start "Checking for Doom's prerequisites..."))
|
||||
(print-group!
|
||||
|
|
|
@ -305,11 +305,11 @@ or file path may exist now."
|
|||
;; Resolve symlinks, strip out the /sudo:X@ prefix in local tramp paths, and
|
||||
;; abbreviate $HOME -> ~ in filepaths (more portable, more readable, & saves
|
||||
;; space)
|
||||
(add-to-list 'recentf-filename-handlers 'doom--recentf-file-truename-fn)
|
||||
(add-to-list 'recentf-filename-handlers #'doom--recentf-file-truename-fn)
|
||||
|
||||
;; Text properties inflate the size of recentf's files, and there is
|
||||
;; no purpose in persisting them (Must be first in the list!)
|
||||
(add-to-list 'recentf-filename-handlers 'substring-no-properties)
|
||||
(add-to-list 'recentf-filename-handlers #'substring-no-properties)
|
||||
|
||||
(add-hook! '(doom-switch-window-hook write-file-functions)
|
||||
(defun doom--recentf-touch-buffer-h ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue