;;; Code: ;; Load path (add-to-list 'load-path "~/.emacs.d/lisp/") ;; Melpa support (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) ;; https://stackoverflow.com/questions/31079204/emacs-package-install-script-in-init-file (package-initialize) ;; The default is 800 kilobytes. Measured in bytes. (setq gc-cons-threshold (* 50 1000 1000)) ;; Profile emacs startup (add-hook 'emacs-startup-hook (lambda () (message "*** Emacs loaded in %s seconds with %d garbage collections." (emacs-init-time "%.2f") gcs-done))) ;; Theme (use-package doom-themes :ensure t :config (load-theme 'doom-one-light t) (doom-themes-org-config) ) (require 'general) (require 'cpp) (require 'go) (require 'text) (require 'org-custom) (require 'web) (require 'markdown) (require 'lisp) (require 'json) (require 'python-custom) (require 'vc-annotate-lens-mode) (require 'server) (unless (server-running-p) (server-start))