-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
55 lines (48 loc) · 1.7 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(let ((gc-cons-threshold most-positive-fixnum))
;; Set repositories
(require 'package)
(setq-default
custom-file "~/.emacs.d/.custom-vars" ;; set custom file but never load it; config custom with use-package instead
load-prefer-newer t
package-enable-at-startup nil)
(load custom-file)
(setq
package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")))
(package-initialize)
(require 'use-package-ensure)
(setq use-package-always-ensure t
use-package-always-defer t
use-package-expand-minimally t)
;; https://github.com/slotThe/vc-use-package
(unless (package-installed-p 'vc-use-package)
(package-vc-install "https://github.com/slotThe/vc-use-package"))
(require 'vc-use-package)
;; Use latest Org
(use-package org
:bind (("C-x M-a" . org-agenda)
:map org-mode-map
("<C-return>" . save-buffer))
:custom
(org-log-done t)
(org-agenda-files '("/home/zarkone/work/pitch/notes"))
(org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "HOLD" "|" "DONE" "CANCELLED")))
(org-todo-keyword-faces
'(("TODO" . org-warning)
("IN-PROGRESS" . (:foreground "yellow" :weight bold))
("HOLD" . (:foreground "purple" :weight bold))
("CANCELLED" . (:foreground "pink"))))
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(python . t)))
:config
(custom-set-faces
'(org-link ((t (:inherit link :underline t :italic t)))))
(use-package org-tempo
:demand t
:ensure nil))
;; Tangle configuration
(org-babel-load-file (expand-file-name "literally.org" user-emacs-directory))
(garbage-collect))