 
 ;;; Commentary:
 
-;; A personal Emacs config.  Slower than Doom Emacs on startup, but only by a few seconds.
+;; A personal Emacs config.
 
 ;;; Code:
 
 ;; Settings
-(require 'uniquify)
-(setq uniquify-buffer-name-style 'forward
+
+;; disable garbage collection until after init
+(setq gc-cons-threshold-original gc-cons-threshold
+	  gc-cons-threshold (* 1024 1024 100)
+	  uniquify-buffer-name-style 'forward
       indent-tabs-mode nil
       require-final-newline t
       inhibit-startup-screen t
+	  frame-inhibit-implied-resize t
+	  backup-directory-alist `(("." . ,temporary-file-directory))
+	  auto-save-file-name-transforms `((".*" ,temporary-file-directory t))
       default-directory "~")
-;;      setq find-file-visit-truename t)
+
+;; Font settings
+(add-to-list 'default-frame-alist '(font . "Iosevka Medium-12"))
+(set-face-attribute 'default nil :family "Iosevka Medium" :height 120)
+(set-face-attribute 'fixed-pitch nil :family "Iosevka Medium" :height 120)
+(set-face-attribute 'variable-pitch nil :family "Iosevka Aile Medium" :height 120)
+;; modeline
+(set-face-attribute 'mode-line nil :family "Iosevka Medium")
+
+;; variable pitch in text-mode buffers
+(add-hook 'text-mode-hook 'variable-pitch-mode)
+;; frame size
+(set-frame-size (selected-frame) 80 35)
+
+(require 'uniquify)
 (setq-default tab-width 4)
 
 ;; reenable disabled commands

;; fancy icons for dired
(use-package all-the-icons-dired
  :straight t
  :hook (dired-mode . all-the-icons-dired-mode)
  :after (all-the-icons dired))

;; dependence for dired-hacks-*

(add-hook 'html-mode-hook
		  (lambda ()
			(set (make-local-variable 'sgml-basic-offset) 4)))

;; youtube-dl
(defun tn/ytdl (url)
  "Call youtube-dl with argument URL and opens folder of files in wdired-mode.")

;; Straight.el package manager
;;============================
