-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
64 lines (55 loc) · 2.39 KB
/
.emacs
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
56
57
58
59
60
61
62
63
64
;;; .emacs --- My custom Emacs setup -*- lexical-binding: t; -*-
;;; Commentary:
;; This is my personal Emacs configuration file.
;;
;; Notice that it's splitted among several files in order to make it easier to
;; understand and segregate their configuration. Other than that, I have added
;; some short documentation to describe each package.
;;; Code:
;; ============================================
;; PACKAGE MANAGER
;;
;; Next-generation, purely functional package manager for the Emacs hacker.
;; Save and load version lockfiles that ensure 100% reprocibility for my Emacs
;; configuration. Package state is defined entirely by the init-file and
;; (optional) lockfile, with no extra persistent data floating around.
;; Repository: `https://github.com/radian-software/straight.el'
;;
;; Bootstrap script:
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name
"straight/repos/straight.el/bootstrap.el"
(or (bound-and-true-p straight-base-dir)
user-emacs-directory)))
(bootstrap-version 7))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(setq package-enable-at-startup nil)
(require 'straight)
(straight-use-package 'use-package)
;; https://github.com/radian-software/straight.el#how-do-i-update-melpa-et-al
(defalias 'straight-update-all-packages 'straight-pull-all)
;; https://github.com/radian-software/straight.el#how-do-i-uninstall-a-package
(defalias 'straight-clean-packages 'straight-remove-unused-repos)
;; ============================================
;; Load external configuration
(message "Loading external configuration")
(defvar gajo--local-dir
"~/Desktop/codes/emacs-config/"
"Base path for the src files.")
(load-file (concat gajo--local-dir "src/helpers.el"))
(load-file (concat gajo--local-dir "src/theme.el"))
(load-file (concat gajo--local-dir "src/global.el"))
(load-file (concat gajo--local-dir "src/unfill-paragraph.el"))
(load-file (concat gajo--local-dir "src/org-mode.el"))
(load-file (concat gajo--local-dir "src/markdown.el"))
(load-file (concat gajo--local-dir "src/prog-mode.el"))
(load-file (concat gajo--local-dir "src/move-buffer.el"))
;;; .emacs ends here