Skip to content

Commit 67b9fb2

Browse files
committed
fix(combobulate): hack to prevent combobulate from loading at startup
1 parent 6e012e9 commit 67b9fb2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

modules/me-prog.el

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,23 @@
212212

213213
;; Structured editing and navigation in Emacs with Tree-Sitter
214214
(use-package combobulate
215-
:straight (:host github :repo "mickeynp/combobulate" :nonrecursive t) ; Cloning the `html-ts-mode' submodule causes problems
215+
:straight (combobulate
216+
:host github
217+
:repo "mickeynp/combobulate"
218+
:nonrecursive t ; Cloning the `html-ts-mode' submodule causes problems
219+
:files (:defaults (:exclude "combobulate.el"))) ; TEMP: The "combobulate.el" contains a lot of autoloads that prevent lazy loading
216220
:when (and (not os/win) (+emacs-features-p 'tree-sitter)) ; TEMP: disable on Windows
217221
:custom
218222
(combobulate-key-prefix "C-c o")
219223
:config
224+
;; Basically, load the same features that would be loaded by "combobulate.el"
225+
(dolist (feature '(combobulate-rules combobulate-procedure combobulate-navigation
226+
combobulate-manipulation combobulate-envelope combobulate-display
227+
combobulate-ui combobulate-misc combobulate-query combobulate-cursor
228+
combobulate-toml combobulate-html combobulate-python combobulate-js-ts
229+
combobulate-css combobulate-yaml combobulate-json combobulate-go))
230+
(require feature))
231+
220232
;; The "M-<up/down/left/right>" keys are used globally by `drag-stuff', lets
221233
;; unset them for `combobulate' and use "M-S-<up/down/left/right>" instead.
222234
(mapc (lambda (k) (keymap-unset combobulate-key-map k 'remove)) '("M-<up>" "M-<down>" "M-<left>" "M-<right>"))

0 commit comments

Comments
 (0)