mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
update emacs config to 21th century
This commit is contained in:
21
conf-lisp/textscale.el
Normal file
21
conf-lisp/textscale.el
Normal 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))
|
||||
Reference in New Issue
Block a user