mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-16 20:10:58 +01:00
26 lines
886 B
EmacsLisp
26 lines
886 B
EmacsLisp
;;; ** increase fontsize with ctrl-+ and ctrl--
|
|
|
|
;; I use those bindings everywhere (firefox, terminal, etc), and in
|
|
;; emacs as well.
|
|
;; using https://github.com/purcell/default-text-scale
|
|
(use-package default-text-scale
|
|
:config
|
|
(defun tvd-global-font-size-bigger ()
|
|
"Make font size larger."
|
|
(interactive)
|
|
;; (text-scale-increase 0.5)
|
|
(default-text-scale-increase))
|
|
|
|
(defun tvd-global-font-size-smaller ()
|
|
"Change font size back to original."
|
|
(interactive)
|
|
;; (text-scale-increase -0.5)
|
|
(default-text-scale-decrease))
|
|
|
|
(global-set-key (kbd "C-+") 'tvd-global-font-size-bigger)
|
|
(global-set-key (kbd "C--") 'tvd-global-font-size-smaller))
|
|
|
|
|
|
(provide 'init-textscale)
|
|
;;; init-textscale.el ends here
|