feat(emacs.d): Add functions & bindings to manage global font size
This makes it possible to quickly adjust the size of text in all frames using one keyboard shortcut. Each of these functions understands a prefix argument to mean "please only operate on the current buffer", hence the following bindings and effects: Global: * `C-=`: Increase the global font size (chosen because `+` lies on the `=` key) * `C--`: Decrease the global font size * `C-x C-0`: Restore the global default font size Local: * `C-u C-=`: Increase the local font size * `C-u C--`: Decrease the local font size * `C-u C-x C-0`: Restore the local default font size
This commit is contained in:
parent
caf23a9e2a
commit
be28071e56
2 changed files with 33 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
;; Font size
|
||||
(define-key global-map (kbd "C-+") 'text-scale-increase)
|
||||
(define-key global-map (kbd "C--") 'text-scale-decrease)
|
||||
(define-key global-map (kbd "C-=") 'increase-default-text-scale) ;; '=' because there lies '+'
|
||||
(define-key global-map (kbd "C--") 'decrease-default-text-scale)
|
||||
(define-key global-map (kbd "C-x C-0") 'set-default-text-scale)
|
||||
|
||||
;; What does <tab> do? Well, it depends ...
|
||||
(define-key prog-mode-map (kbd "<tab>") #'company-indent-or-complete-common)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue