Skip to content

Instantly share code, notes, and snippets.

@akirak
Created January 4, 2018 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akirak/04621bd95eae06582e9cacc35054d7cf to your computer and use it in GitHub Desktop.
Save akirak/04621bd95eae06582e9cacc35054d7cf to your computer and use it in GitHub Desktop.
An example of minimal initialization file for Emacs with straight package manager
(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