Skip to content

Commit

Permalink
tweak(vars): add minemacs-obsolete-modules-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 3, 2024
1 parent 761278f commit fb1a605
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/me-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ environment variable \"$MINEMACS_IGNORE_USER_CONFIG\".")
(defconst minemacs-assets-dir (concat minemacs-root-dir "assets/"))
(defconst minemacs-elisp-dir (concat minemacs-root-dir "elisp/"))
(defconst minemacs-modules-dir (concat minemacs-root-dir "modules/"))
(defconst minemacs-obsolete-modules-dir (concat minemacs-modules-dir "obsolete/"))
(defconst minemacs-extras-dir (concat minemacs-modules-dir "extras/"))
(defconst minemacs-local-dir (concat minemacs-root-dir "local/"))
(defconst minemacs-cache-dir (concat minemacs-local-dir "cache/"))
Expand Down
2 changes: 1 addition & 1 deletion modules/me-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

;; Fallback to `expand-region' if `expreg' cannot be used
(unless (+emacs-features-p 'tree-sitter)
(+load minemacs-modules-dir "obsolete/me-expand-region.el"))
(+load minemacs-obsolete-modules-dir "me-expand-region.el"))

(use-package drag-stuff
:straight t
Expand Down
4 changes: 2 additions & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

(unless (+emacs-features-p 'tree-sitter)
;; Use the external `tree-sitter' module
(+load minemacs-modules-dir "obsolete/me-tree-sitter.el")
(+load minemacs-modules-dir "obsolete/me-cmake.el"))
(+load minemacs-obsolete-modules-dir "me-tree-sitter.el")
(+load minemacs-obsolete-modules-dir "me-cmake.el"))

(use-package treesit-auto
:straight (:host github :repo "renzmann/treesit-auto")
Expand Down
2 changes: 1 addition & 1 deletion skel/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
;; you can force MinEmacs to load obsolete configurations by loading them
;; manually. Here is an example of how to force loading an obsolete module, you
;; can do this here or in modules.el.
;; (+load minemacs-modules-dir "obsolete/me-spell-fu.el")
;; (+load minemacs-obsolete-modules-dir "me-spell-fu.el")
;; (with-eval-after-load 'spell-fu
;; ;; We can use MinEmacs' helper macro `+spell-fu-register-dictionaries!'
;; ;; to enable multi-language spell checking.
Expand Down

0 comments on commit fb1a605

Please sign in to comment.