Skip to content

Instantly share code, notes, and snippets.

@cryptorick
Last active June 10, 2023 16:23
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 cryptorick/b49627b66ee4182f7bcf6bd12fa78dae to your computer and use it in GitHub Desktop.
Save cryptorick/b49627b66ee4182f7bcf6bd12fa78dae to your computer and use it in GitHub Desktop.
Example Emacs init using Elpaso. (For my friend Raoul)
;;----------------------------------------------------------------------
;; Elpaso package manager
;; Bootstrap it outside of Emacs: these commands will install cask and elpaso,
;; respectively, to ~/.emacs.d/elpa.
;;
;; $ cd builds # go somewhere where you usually build software.
;; $ git clone https://github.com/cask/cask && make -C cask install
;; $ git clone https://github.com/commercial-emacs/elpaso && make -C elpaso install
(package-initialize) ; add all packages in `elpa/` to `load-path`.
(require 'elpaso) ; now we can load elpaso.
;; Let elpaso handle use-package ensures (i.e., installs).
(require 'use-package)
(setq use-package-ensure-function 'elpaso-use-package-ensure-function)
;;----------------------------------------------------------------------
;; Your use-package invocations
(use-package projectile
:ensure t ;; this ensures `projectile` is installed (and elpaso will handle it).
:config
(projectile-mode +1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment