Rewrite set-width to be a function that accepts any argument

This commit is contained in:
Maciej Szlosarczyk 2017-05-26 00:08:01 +03:00
parent 7c92796a8c
commit a449bcbb5b
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
4 changed files with 34 additions and 39 deletions

View file

@ -12,4 +12,15 @@
(interactive "r")
(align-regexp begin end
(rx ":" (group (zero-or-more (syntax whitespace))) ) 1 1))
;;;; Functions to update font size
(defun set-font-size (size)
"Set font SIZE to X px."
(interactive "NNew font size: ")
(set-face-attribute 'default nil :font (format "Hasklig %d" size))
(set-face-attribute 'helm-selection nil :font (format "Hasklig %d" size))
(set-face-attribute 'helm-header nil :font
(format "Hasklig %d"
(+ size 2))))
;;; functions.el ends here