(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (require 'package) (setq package-enable-at-startup nil) (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/") ("org" . "https://orgmode.org/elpa/"))) (package-initialize) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (use-package evil :ensure t :config (evil-mode 1)) (use-package magit :ensure t) (use-package alect-themes :ensure t :config (load-theme 'alect-black t)) (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (tool-bar-mode -1) (menu-bar-mode -1) (scroll-bar-mode -1) (setq display-line-numbers-type 'relative) (global-display-line-numbers-mode 1) (set-face-attribute 'default nil :font "FiraCode Nerd Font Mono") (set-face-attribute 'fixed-pitch nil :font "FiraCode Nerd Font Mono") (add-hook 'c-mode-common-hook (lambda () (c-set-style "linux") (setq indent-tabs-mode nil) (setq tab-width 4))) (setq compilation-scroll-output t)