Minor refactors & comment revision
This commit is contained in:
parent
29250133e8
commit
0c9f1b1a9c
6 changed files with 11 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -22,11 +22,11 @@ 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
|
||||
(aref (doom--font-name (frame-parameter nil 'font)
|
||||
(selected-frame))
|
||||
xlfd-regexp-pixelsize-subnum)))
|
||||
(scale (frame-parameter nil 'font-scale)))
|
||||
(let ((font-size (string-to-number
|
||||
(aref (doom--font-name (frame-parameter nil 'font)
|
||||
(selected-frame))
|
||||
xlfd-regexp-pixelsize-subnum)))
|
||||
(scale (frame-parameter nil 'font-scale)))
|
||||
(setq doom-modeline-height (+ default-height (* scale doom-font-increment))))
|
||||
(setq doom-modeline-height default-height))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue