summaryrefslogtreecommitdiff
path: root/emacs_init/init.el
blob: 46e3dc982bc6a6b78ff6228b07db180e2b372720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;;
;; DEFINE AND INITIALISE PACKAGE REPOSITORIES
;;
(require 'package)

;; Add MELPA to the packages list
(add-to-list 'package-archives
 	     '("melpa" . "https://melpa.org/packages/"))

;; Highest number gets priority (what is not mentioned has priority 0)
(setq package-archive-priorities
      '(("gnu" . 2)
        ("nongnu" . 1)))

(package-initialize)

;; USE-PACKAGE TO SIMPLIFY THE CONFIG FILE
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure 't)


(use-package org)
(org-babel-load-file (expand-file-name "~/config/dotFiles/emacs_init/dot_emacs.org"))