This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
994 B

;;; init.el --- Emacs init file
;;; Commentary:
;; Setup package manager and build configuration file.
;;; Code:
;; Increases garbage collection during startup
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'emacs-startup-hook (lambda () (setq gc-cons-threshold 8000000)))
; --------------------------------------
;; Add the melpa repository to the package manager
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
;; Activate autoloads
(package-initialize)
;; Install the 'use-package' dependency
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
; --------------------------------------
;; Base directory
(setq user-emacs-directory (file-name-directory load-file-name))
;; Tangle configuration file
(require 'org)
(when (file-readable-p (concat user-emacs-directory "config.org"))
(org-babel-load-file (concat user-emacs-directory "config.org")))
;;; init.el ends here