Skip to content

Commit

Permalink
tweak(core): prioritize minemacs-first-file over `minemacs-first-X-…
Browse files Browse the repository at this point in the history
…file`
  • Loading branch information
abougouffa committed Jan 16, 2024
1 parent 7f8c0da commit c846a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/me-lib.el
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Executed before `find-file-noselect', it runs all hooks in `%s' and provide the
(if (daemonp)
;; Load immediately after init when in daemon mode
(add-hook 'after-init-hook (lambda () (provide ',feature-name) (run-hooks ',hook-name)) #',fn-name 90)
(advice-add 'find-file-noselect :before #',fn-name '((depth . -101)))))))
(advice-add 'find-file-noselect :before #',fn-name '((depth . ,(if filetype -100 -101))))))))

;; From Doom Emacs
(defun +resolve-hook-forms (hooks)
Expand Down

0 comments on commit c846a0f

Please sign in to comment.