Skip to content

Instantly share code, notes, and snippets.

@taylskid
Created November 26, 2020 13:56
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 taylskid/e9fafd1c66db87f332a0924a618f3818 to your computer and use it in GitHub Desktop.
Save taylskid/e9fafd1c66db87f332a0924a618f3818 to your computer and use it in GitHub Desktop.
;; path: .emacs.d/private/gerbil/packages.el
;;; packages.el --- gerbil layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
;;
;; Author: Taylor Skidmore <me@taylskid.me>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defconst gerbil-packages
'(evil-cleverparens
(gerbil-mode :location local)
smartparens))
(defun gerbil/pre-init-evil-cleverparens ()
(spacemacs|use-package-add-hook evil-cleverparens
:pre-init
(add-to-list 'evil-lisp-safe-structural-editing-modes 'gerbil-mode)))
(defun gerbil/post-init-smartparens ()
(with-eval-after-load 'smartparens
(add-to-list 'sp--lisp-modes 'gerbil-mode)
(when (fboundp 'sp-local-pair)
(sp-local-pair 'gerbil-mode "'" nil :actions nil)
(sp-local-pair 'gerbil-mode "`" nil :actions nil))))
(defun gerbil/init-gerbil-mode ()
(use-package gerbil-mode))
;;; packages.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment