Skip to content

Commit

Permalink
Add config for puni
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Dec 23, 2023
1 parent b1ac6a9 commit 9cb7f5c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lisp/init-paredit.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,19 @@

(add-hook 'sanityinc/lispy-modes-hook 'enable-paredit-mode)

(when (maybe-require-package 'puni)
;;(add-hook 'prog-mode-hook 'puni-mode)
(add-hook 'sanityinc/lispy-modes-hook (lambda () (puni-mode -1)))
(with-eval-after-load 'puni
(define-key puni-mode-map (kbd "M-(") 'puni-wrap-round)
(define-key puni-mode-map (kbd "C-(") 'puni-slurp-backward)
(define-key puni-mode-map (kbd "C-)") 'puni-slurp-forward)
(define-key puni-mode-map (kbd "C-}") 'puni-barf-forward)
(define-key puni-mode-map (kbd "C-{") 'puni-barf-backward)
(define-key puni-mode-map (kbd "M-<up>") 'puni-splice-killing-backward)
(define-key puni-mode-map (kbd "C-w") nil)))



(provide 'init-paredit)
;;; init-paredit.el ends here

0 comments on commit 9cb7f5c

Please sign in to comment.