;; Install package.el for package management (require 'package) (setq package-enable-at-startup nil) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t) (package-initialize) ;;(when (not package-archive-contents) ;; (package-refresh-contents)) ;; Bootstrap use-package (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) ;; (package-install 'use-package) (featurep 'use-package)
Hi I'm new to emacs and I'm learning how to configure the init file. I have this code above so far that I'm not sure is working. Of particular interest is the bootstrapping of use-package. It might be ok and I just don't know how to use featurep or misunderstand it's use.
So I want to verify that the packages are being installed so I read somewhere on the internet that you can use (featurep 'some-package) to verify that the package is installed. So when I run the last line of this code, it is supposed to verify that the use-package bootstrapping worked. I thought I should be expecting t as the output but I'm getting nil as the output from running (featurep use-package)