summary refs log tree commit diff
path: root/emacs.d/config/config-package.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:13:12 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:13:12 -0700
commit4007ca81e0105119c8ed754e654a731934f5154c (patch)
tree41ba9d60f64866c8a098e631e8e32bf4249931fa /emacs.d/config/config-package.el
parent[emacs] fix some path after directories reorg (diff)
downloademacs.d-4007ca81e0105119c8ed754e654a731934f5154c.tar.gz
[emacs] Large refactoring.
At first I wanted to add support for java, and then I realized that
maintaining a giant file with all the packages was not working as I
was expected.

The configuration is broken down to multiple files now, with each
major mode in a separate file, and the main modules in their own too.

This should make it easier to maintain and organize.
Diffstat (limited to 'emacs.d/config/config-package.el')
-rw-r--r--emacs.d/config/config-package.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs.d/config/config-package.el b/emacs.d/config/config-package.el
new file mode 100644
index 0000000..1b262c3
--- /dev/null
+++ b/emacs.d/config/config-package.el
@@ -0,0 +1,23 @@
+;; where to store the packages
+(setq package-user-dir (expand-file-name "var/elpa" user-emacs-directory))
+
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
+
+;; enable package
+;; (setq package-enable-at-startup nil)
+
+;; initialize it
+(package-initialize)
+
+;; paradox is a better interface
+(when (not (package-installed-p 'paradox))
+  (package-install 'paradox))
+
+(paradox-require 'use-package)
+
+(require 'use-package)
+
+(setq use-package-always-ensure t)
+
+(provide 'config-package)