-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
27 lines (20 loc) · 1015 Bytes
/
init.el
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
;; Basic init file that loads most settings from a org file
;; where settings can be more easily organised.
(require 'package)
(setq package-enable-at-startup nil)
;; Let's start with only stable melpa packages, and go from there.
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
;;(add-to-list 'package-archives '("ublt" . "https://elpa.ubolonton.org/packages/"))
;;(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
;; Solves issue on emacs 26?
;; from https://francopasut.medium.com/emacs-melpa-and-the-failed-to-download-gnu-archive-error-b834bbe4491e
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'org)
(require 'ob-tangle)
(org-babel-load-file "~/.emacs.d/readme.org")
(put 'dired-find-alternate-file 'disabled nil)