Created
January 4, 2018 04:11
-
-
Save akirak/04621bd95eae06582e9cacc35054d7cf to your computer and use it in GitHub Desktop.
An example of minimal initialization file for Emacs with straight package manager
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
(setq custom-file "~/.custom.el") | |
;; Install straight.el | |
;; Just pasted from https://github.com/raxod502/straight.el#getting-started | |
(let ((bootstrap-file (concat user-emacs-directory "straight/repos/straight.el/bootstrap.el")) | |
(bootstrap-version 3)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer | |
(url-retrieve-synchronously | |
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" | |
'silent 'inhibit-cookies) | |
(goto-char (point-max)) | |
(eval-print-last-sexp))) | |
(load bootstrap-file nil 'nomessage)) | |
;; You have to install use-package in order to use use-package with straight | |
(straight-use-package 'use-package) | |
;; An example of using use-package and straight | |
(use-package emacs-pg | |
:straight (emacs-pg :type git :host github :repo "akirak/emacs-pg") | |
:defer t | |
:commands (emacs-pg-try | |
emacs-pg-add | |
emacs-pg-adopt | |
emacs-pg-unadopt | |
emacs-pg-update-symlinks) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment