use "creature/pkg-active" manage packages manually
- replace "add-pkg-in-pkg-dir" (recursive load-path scanning) with a central "creature/pkgs" registry that handles load path, autoloads, info dirs and dependencies - adapt all init-*.el files to the new activation function - add a top-level Makefile to byte-compile site-lisp packages - remove unused "emacs-kv" and "emacs-db" submodules
This commit is contained in:
27 files changed
+422
-149
No files matched your search
@@ -1,10 +1,14 @@
|
||||
;; -*- coding: utf-8; lexical-binding: t; -*-
|
||||
|
||||
(require 'init-package)
|
||||
(unless (locate-library "editorconfig")
|
||||
(add-pkg-in-pkg-dir "editorconfig-emacs"))
|
||||
(require 'init-package)
|
||||
|
||||
(autoload 'editorconfig-mode "editorconfig" "" t)
|
||||
(creature/pkg-active 'editorconfig)
|
||||
|
||||
(autoload 'editorconfig-mode "editorconfig" "" t)
|
||||
(autoload 'editorconfig-conf-mode "editorconfig-conf-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("\\.editorconfig\\'" . editorconfig-conf-mode)))
|
||||
|
||||
(defun creature/editorconfig-setup ()
|
||||
(editorconfig-mode 1)
|
||||
@@ -26,10 +30,6 @@
|
||||
(add-hook 'find-file-hook #'creature/editorconfig-setup)
|
||||
|
||||
|
||||
(autoload 'editorconfig-conf-mode "editorconfig-conf-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("\\.editorconfig\\'" . editorconfig-conf-mode))
|
||||
|
||||
(with-eval-after-load 'editorconfig
|
||||
(add-to-list 'editorconfig-indentation-alist '(js-ts-mode js-indent-level))
|
||||
(add-to-list 'editorconfig-indentation-alist '(plantuml-mode plantuml-indent-level))
|
||||
|
||||
Reference in new issue
Block a user