emacs-config/init.el

36 lines
1.2 KiB
EmacsLisp
Raw Normal View History

2019-04-11 13:40:33 -04:00
;; init the straight package manager
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
2019-04-11 13:58:02 -04:00
;; watch for repo modifications if we have python3 and watchexec
;; otherwise just use a save hook
(setq straight-check-for-modifications
(if (and (executable-find "python3")
(executable-find "watchexec"))
'(watch-files find-when-checking)
'(check-on-save find-when-checking)))
2019-04-11 13:40:33 -04:00
(straight-use-package 'use-package)
(defvar nd/conf-dir "~/.emacs.d/"
2018-12-11 20:05:56 -05:00
"The absolute path to the EMACS configuration directory.")
(defvar nd/conf-main (expand-file-name "conf.org" nd/conf-dir)
2018-12-11 20:05:56 -05:00
"The absolute path the main EMACS configuration file.")
2019-04-24 17:24:14 -04:00
;; ensure we don't use built-in org mode
(use-package org :straight org-plus-contrib)
;; (straight-use-package '(org :type built-in))
2018-12-11 20:05:56 -05:00
(org-babel-load-file nd/conf-main)