Skip to content

Commit

Permalink
tweak: better modules loading
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 27, 2023
1 parent 10aa065 commit de54ff2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

(use-package epa-file
:straight (:type built-in)
:after minemacs-loaded
:after minemacs-first-file
:demand t
:config
(+shutup! (epa-file-enable)))
Expand Down Expand Up @@ -278,27 +278,27 @@
"l" #'bibtex-fill-entry
"r" #'bibtex-reformat))

(unless (+emacs-features-p 'tree-sitter)
(push '(treesit dockerfile-ts-mode cmake-ts-mode) minemacs-disabled-packages))

(use-package treesit
:straight (:type built-in)
:when (+emacs-features-p 'tree-sitter)
:custom
(treesit-font-lock-level 4))

(use-package dockerfile-ts-mode
:straight (:type built-in)
:when (+emacs-features-p 'tree-sitter)
:mode "/Dockerfile\\'")

(use-package cmake-ts-mode
:straight (:type built-in)
:when (+emacs-features-p 'tree-sitter)
:mode "CMakeLists\\.txt\\'"
:mode "\\.cmake\\'")

(use-package autoinsert
;; NOTE: When prompting (like in Keywords), hit M-RET when finished
:straight (:type built-in)
:hook (minemacs-after-startup . auto-insert-mode)
:hook (minemacs-first-file . auto-insert-mode)
:custom
(auto-insert-directory (+directory-ensure minemacs-local-dir "auto-insert/")))

Expand Down Expand Up @@ -1033,7 +1033,7 @@
(use-package autorevert
:straight (:type built-in)
;; Auto load files changed on disk
:hook (minemacs-after-startup . global-auto-revert-mode)
:hook (minemacs-first-file . global-auto-revert-mode)
:custom
;; Revert non-file buffers like dired
(global-auto-revert-non-file-buffers t))
Expand All @@ -1047,7 +1047,7 @@
(use-package saveplace
:straight (:type built-in)
;; Save place in files
:hook (minemacs-after-startup . save-place-mode)
:hook (minemacs-first-file . save-place-mode)
:custom
(save-place-file (concat minemacs-local-dir "save-place.el")))

Expand Down
4 changes: 2 additions & 2 deletions modules/me-multi-cursors.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

(use-package iedit
:straight t
:after minemacs-lazy
:after minemacs-first-file
:demand t
:preface
(+fn-inhibit-messages! iedit-update-key-bindings))
Expand All @@ -25,7 +25,7 @@

(use-package evil-mc
:straight t
:hook (minemacs-after-startup . global-evil-mc-mode)
:hook (minemacs-first-file . global-evil-mc-mode)
:config
;; Use "gz" instead of "gr", this last is mapped to `xref-find-references' in
;; some programming modes.
Expand Down
2 changes: 1 addition & 1 deletion modules/me-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

(use-package blamer
:straight t
:hook (minemacs-after-startup . global-blamer-mode)
:hook (minemacs-first-file . global-blamer-mode)
:custom
(blamer-idle-time 0.3)
(blamer-min-offset 60)
Expand Down

0 comments on commit de54ff2

Please sign in to comment.