Add doom/{increase,decrease,reset}-font commands

Borrows the idea from zoom-frm (see #1389).
This commit is contained in:
Henrik Lissner 2019-05-12 21:54:16 -04:00
parent ef4106dae8
commit 0f0fdbc00c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 124 additions and 51 deletions

View file

@ -22,9 +22,9 @@
"<C-mouse-4>" #'text-scale-increase
"<C-mouse-5>" #'text-scale-decrease
"<C-down-mouse-2>" (λ! (text-scale-set 0))
"M-+" (λ! (text-scale-set 0))
"M-=" #'text-scale-increase
"M--" #'text-scale-decrease
"M-+" #'doom/reset-font-size
"M-=" #'doom/increase-font-size
"M--" #'doom/decrease-font-size
;; Editor related bindings
[remap newline] #'newline-and-indent
"C-j" #'+default/newline

View file

@ -162,9 +162,9 @@
"s-v" #'yank
"s-s" #'save-buffer
;; Buffer-local font scaling
"s-+" (λ! (text-scale-set 0))
"s-=" #'text-scale-increase
"s--" #'text-scale-decrease
"s-+" #'doom/reset-font-size
"s-=" #'doom/increase-font-size
"s--" #'doom/decrease-font-size
;; Conventional text-editing keys & motions
"s-a" #'mark-whole-buffer
:g "s-/" (λ! (save-excursion (comment-line 1)))