From 3a40c965742736cb4cd91a23ce8b08161c14a523 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 11 May 2022 20:16:46 +0800 Subject: Setup emacs package location --- .emacs.d/lisp/init-package.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d') diff --git a/.emacs.d/lisp/init-package.el b/.emacs.d/lisp/init-package.el index b37d0e7..f7980e5 100644 --- a/.emacs.d/lisp/init-package.el +++ b/.emacs.d/lisp/init-package.el @@ -1,7 +1,11 @@ +;;; init-package.el -*- lexical-binding: t -*- + (require 'package) (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("mepla" . "https://melpa.org/packages/") ("melpa-stable" . "https://stable.melpa.org/packages/"))) +(setq package-user-dir + (expand-file-name "elpa" user-emacs-directory)) (defun gx/require-package (package &optional min-version no-refresh) "Install given PACKAGE, optionally requiring MIN-VERSION. If -- cgit v1.2.3