emacs - (message "%S" load-path) and (describe-variable load-path) give different results -


(message "%s" load-path) , (describe-variable 'load-path) give different results. several more path "/users/updogliu/.emacs.d/elpa/flycheck-20140323.828" appeared in latter.

how can make (require 'flycheck) use "describe" 1 load-path?

to setup flycheck properly, not need require flycheck. instead, enable global flycheck mode:

(add-hook 'after-init-hook #'global-flycheck-mode) 

this enable flycheck supported languages.

to make (require 'flycheck) work in init.el, need add (package-initialize) @ very beginning of init.el.

(package-initialize) sets emacs' built-in package system, includes adding packages load-path. emacs calls automatically, after init.el has been processed, hence use of after-init-hook enable flycheck.

if added message call init.el without calling (package-initialize) first, you'll hence see standard load-path without of packages.

to make packages available in init.el right away, need call (package-initialize) manually, @ beginning of init.el.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -