This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup-packages.el
47 lines (38 loc) · 1.61 KB
/
setup-packages.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
;;; setup-packages.el -*- lexical-binding: t; -*-
;; Time-stamp: <2020-05-13 16:11:16 csraghunandan>
;; Copyright (C) 2016-2020 Chakravarthy Raghunandan
;; Author: Chakravarthy Raghunandan <[email protected]>
;; this makes each use-package form also invoke straight.el to install the
;; package, unless otherwise specified.
(setq straight-use-package-by-default t)
;; Use watchexec (if it is installed) and python3 to check for modifications for
;; elisp packages
(when (executable-find "watchexec")
(setq straight-check-for-modifications
`(watch-files find-when-checking)))
(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))
;; install use-package
(straight-use-package 'use-package)
;; enable imenu support for `use-package'
(setq use-package-enable-imenu-support t)
(require 'bind-key)
;; https://github.com/emacsorphanage/key-chord/tree/master
(use-package key-chord
:hook (emacs-startup . (lambda ()
(key-chord-mode 1))))
(use-package use-package-chords)
;; updates GPG keys used by ELPA package manager
;; https://elpa.gnu.org/packages/gnu-elpa-keyring-update.html
(use-package gnu-elpa-keyring-update)
(provide 'setup-packages)