mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Fix lingering dependencies on cl
This commit is contained in:
parent
84b8947f94
commit
70810d41ac
9
init.org
9
init.org
@ -761,20 +761,19 @@
|
|||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(let* ((default (face-attribute 'default :height))
|
(let* ((default (face-attribute 'default :height))
|
||||||
(size default))
|
(size default))
|
||||||
|
|
||||||
(defun global-scale-default ()
|
(defun global-scale-default ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(setq size default)
|
(global-scale-internal (setq size default)))
|
||||||
(global-scale-internal size))
|
|
||||||
|
|
||||||
(defun global-scale-up ()
|
(defun global-scale-up ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(global-scale-internal (incf size 20)))
|
(global-scale-internal (setq size (+ size 20))))
|
||||||
|
|
||||||
(defun global-scale-down ()
|
(defun global-scale-down ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(global-scale-internal (decf size 20)))
|
(global-scale-internal (setq size (- size 20))))
|
||||||
|
|
||||||
(defun global-scale-internal (arg)
|
(defun global-scale-internal (arg)
|
||||||
(set-face-attribute 'default (selected-frame) :height arg)
|
(set-face-attribute 'default (selected-frame) :height arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user