update emacs config to 21th century

This commit is contained in:
2023-04-12 14:26:43 +02:00
parent 76ce84c43b
commit 725984485a
121 changed files with 6584 additions and 6864 deletions

21
conf-lisp/textscale.el Normal file
View File

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