Created
May 2, 2016 03:56
-
-
Save kaushalmodi/a9952f2f5189feda1100e20b21b76486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; (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