add package to load-path only when needed

This commit is contained in:
zedhugh committed 2024-09-15 03:10:48 +08:00
1 parent a4f03a72d0
commit 5dea4193e2
22 files changed
+167 -38

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
;; -*- coding: utf-8; lexical-binding: t; -*-
(require 'init-package)
(unless (locate-library "editorconfig")
(add-pkg-in-pkg-dir "editorconfig-emacs"))
(autoload 'editorconfig-mode "editorconfig" "" t)
(defun creature/editorconfig-setup ()