;; Make emacs startup faster (setq gc-cons-threshold 402653184 gc-cons-percentage 0.6) (defvar startup/file-name-handler-alist file-name-handler-alist) (setq file-name-handler-alist nil) (defun startup/revert-file-name-handler-alist () (setq file-name-handler-alist startup/file-name-handler-alist)) (defun startup/reset-gc () (setq gc-cons-threshold 16777216 gc-cons-percentage 0.1)) (add-hook 'emacs-startup-hook 'startup/revert-file-name-handler-alist) (add-hook 'emacs-startup-hook 'startup/reset-gc) ;; ;; Initialize melpa repo (require 'package) (setq package-enable-at-startup nil) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) ;; Initialize use-package (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) ;; Load Witchmacs theme (load-theme 'Witchmacs t) ;; Load config.org for init.el configuration (org-babel-load-file (expand-file-name "~/.emacs.d/config.org")) (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 '(meghanada company-irony company-c-headers yasnippet-snippets yasnippet company magit treemacs-icons-dired treemacs-evil treemacs undo-tree async ido-vertical-mode switch-window avy beacon evil swiper which-key dashboard spaceline diminish auto-package-update htmlize use-package))) (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. )