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.
27 lines
677 B
27 lines
677 B
4 years ago
|
;;; init.el --- -*- lexical-binding: t; -*-
|
||
5 years ago
|
|
||
|
;;; Commentary:
|
||
|
|
||
4 years ago
|
;; Setup package archives and build configuration file.
|
||
5 years ago
|
|
||
|
;;; Code:
|
||
|
|
||
5 years ago
|
(require 'package)
|
||
|
|
||
4 years ago
|
;; Add the MELPA repository to the package manager
|
||
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||
5 years ago
|
|
||
4 years ago
|
;; Install the `use-package' dependency
|
||
5 years ago
|
(unless (package-installed-p 'use-package)
|
||
|
(package-refresh-contents)
|
||
|
(package-install 'use-package))
|
||
|
|
||
4 years ago
|
;; -------------------------------------
|
||
4 years ago
|
|
||
4 years ago
|
;; Tangle and load configuration file
|
||
5 years ago
|
(require 'org)
|
||
4 years ago
|
(when (file-readable-p (concat user-emacs-directory "config.org"))
|
||
|
(org-babel-load-file (concat user-emacs-directory "config.org")))
|
||
5 years ago
|
|
||
|
;;; init.el ends here
|