15 lines
583 B
EmacsLisp
15 lines
583 B
EmacsLisp
;;; -*- lexical-binding: t; -*-
|
|
(setq custom-file "~/.config/emacs/custom.el")
|
|
(when (file-exists-p custom-file)
|
|
(load custom-file))
|
|
(setq package-user-dir "~/.cache/emacs/elpa")
|
|
(make-directory package-user-dir t)
|
|
(require 'package)
|
|
;;https://github.com/wbolster/emacs-direnv/issues/85
|
|
(setenv "PATH" (mapconcat 'identity exec-path ":")) ;;fixes direnv losing nix pkgs
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
|
(package-initialize)
|
|
(package-refresh-contents)
|
|
(add-to-list 'load-path (getenv "EMACSLOADPATH"))
|
|
|
|
(load "~/.config/emacs/config.el")
|