Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaushalmodi/a9952f2f5189feda1100e20b21b76486 to your computer and use it in GitHub Desktop.
Save kaushalmodi/a9952f2f5189feda1100e20b21b76486 to your computer and use it in GitHub Desktop.
;; (package-initialize) ; Do NOT delete this comment
;; In emacs 25+, the `package-initialize' call is auto-added to the top of
;; init.el unless the user already has a commented or uncommented
;; `(package-initialize)' line present in their init.el.
;; I call this function in setup-packages.el and so am keeping the
;; commented out version here so that package.el does not add it again.
(advice-add 'require :before
(lambda (feature &optional filename _noerror)
(when (or (eq feature 'finder-inf)
(and (stringp filename)
(string-match-p "finder-inf" filename)))
;; (debug)
(message "feature: %S" feature)
(message "load-file-name: %S" load-file-name)
(message "filename: %S" filename)
(message "---"))))
(load (locate-user-emacs-file "my-package-setup.el") nil :nomessage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment