Skip to content

Instantly share code, notes, and snippets.

@sebasmonia
Last active December 26, 2018 08:22
Show Gist options
  • Save sebasmonia/6c5af668f49aeaac6bc0de9c0a47a3ee to your computer and use it in GitHub Desktop.
Save sebasmonia/6c5af668f49aeaac6bc0de9c0a47a3ee to your computer and use it in GitHub Desktop.
Emacs packages - download and recompile
;; Install the packages in the config. Use when moved to new computer after updating init.el/.emacs
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(package-install-selected-packages)
;; Recompile all packages after major version change
;; In scratch or M-: run the following
(byte-recompile-directory package-user-dir nil 'force)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment