using require

This commit is contained in:
2023-05-16 11:18:38 +02:00
parent 8fdad944f9
commit 98ccb528ea
65 changed files with 5977 additions and 0 deletions

25
lisp/init-textscale.el Normal file
View File

@@ -0,0 +1,25 @@
;;; ** 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