Minor refactors & comment revision

This commit is contained in:
Henrik Lissner 2020-01-11 17:27:04 -05:00
parent 29250133e8
commit 0c9f1b1a9c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 11 additions and 9 deletions

View file

@ -155,6 +155,7 @@ was installed with."
((debug error)
(signal 'doom-package-error
(list (doom-module-from-path file)
file
e))))))
;;;###autoload

View file

@ -91,7 +91,7 @@ declaration) or dependency thereof that hasn't already been."
(cl-incf n))
(error
(signal 'doom-package-error
(list e (straight--process-get-output))))))))
(list package e (straight--process-get-output))))))))
(if (= n 0)
(ignore (print! (success "No packages need to be installed")))
(print! (success "Installed & built %d packages") n)

View file

@ -24,8 +24,8 @@
(package! so-long
:built-in 'prefer ; included in Emacs 27+
;; REVIEW so-long is slated to be published to ELPA eventually, but until then
;; I've created my own mirror for it because git.savannah.gnu.org runs on a
;; potato.
;; I've created my own mirror for it because git.savannah.gnu.org runs
;; on a potato.
:recipe (:host github :repo "hlissner/emacs-so-long"))
(package! undo-tree)
(package! ws-butler

View file

@ -9,7 +9,7 @@
don't have a :trigger property in `+file-templates-alist'.")
(defvar +file-templates-alist
`(;; General
'(;; General
(gitignore-mode)
(dockerfile-mode)
("/docker-compose\\.yml$" :mode yaml-mode)

View file

@ -220,6 +220,7 @@ path too.")
(or (cdr (assoc lang org-src-lang-modes))
(+org--babel-lazy-load lang)))
;; This also works for tangling and exporting
(defadvice! +org--babel-lazy-load-library-a (info)
"Load babel libraries lazily when babel blocks are executed."
:after-while #'org-babel-confirm-evaluate

View file

@ -22,7 +22,7 @@ Meant for `doom-change-font-size-hook'."
(let ((default-height +modeline--old-bar-height)
(scale (or (frame-parameter nil 'font-scale) 0)))
(if (> scale 0)
(let* ((font-size (string-to-number
(let ((font-size (string-to-number
(aref (doom--font-name (frame-parameter nil 'font)
(selected-frame))
xlfd-regexp-pixelsize-subnum)))