(dotimes (_ (abs n1))
(insert text))))))
+(defun b/invert-default-face ()
+ "Invert the `default' face (swap its background and foreground).
+Effectively a very simple light/dark theme toggle switch."
+ (interactive)
+ (invert-face 'default))
+
\f
;;; General key bindings
(global-set-key (kbd "C-c j") #'b/join-line-top)
(global-set-key (kbd "C-S-j") #'b/join-line-top)
(global-set-key (kbd "C-c x") #'execute-extended-command)
+(global-set-key (kbd "C-c v") #'b/invert-default-face)
;; evaling and macro-expanding
(global-set-key (kbd "C-c e b") #'eval-buffer)