commit 81e751f91cdd06b2a1b2fe60b12ffab12d159f30
parent 59a3fd60bd0f4f6c9991184d267b5c2e7a583ffb
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 26 Jan 2022 12:33:44 +0100
emacs: add a folder for manually installed packages
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/emacs/init.el b/emacs/init.el
@@ -12,7 +12,7 @@
(tooltip-mode -1))
;; Set up custom opener command
-(defun my-open (what)
+(defun za/open (what)
"Use ~/.scripts/open to open a file"
(shell-command (concat "~/.scripts/open " what)))
@@ -33,6 +33,9 @@
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
+(setq za/manually-installed-package-dir (concat user-emacs-directory "lisp/"))
+(make-directory za/manually-installed-package-dir t)
+(add-to-list 'load-path za/manually-installed-package-dir)
;; Install and load use-package
(unless (package-installed-p 'use-package)