Skip to content

Commit

Permalink
update sly with use-package
Browse files Browse the repository at this point in the history
  • Loading branch information
chens committed Jan 3, 2024
1 parent 242b567 commit a8a2a99
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
4 changes: 2 additions & 2 deletions lisp/init-github.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
(use-package forge)
(use-package github-review)

(when (maybe-require-package 'flymake-actionlint)
(add-hook 'yaml-mode-hook 'flymake-actionlint-action-load-when-actions-file))
(use-package flymake-actionlint
:hook (yaml-mode . flymake-actionlint-action-load-when-actions-file))

(provide 'init-github)
;;; init-github.el ends here
41 changes: 19 additions & 22 deletions lisp/init-sly.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,32 @@
;;; Commentary:
;;; Code:

(require-package 'sly)
(require-package 'sly-asdf)
(require-package 'sly-macrostep)
(require-package 'sly-repl-ansi-color)


;;; Lisp buffers

(with-eval-after-load 'sly
(use-package sly
:config
;;; Lisp buffers
(setq sly-protocol-version 'ignore)
(setq sly-net-coding-system 'utf-8-unix)
(let ((features '(sly-fancy)))
;; (when (require 'sly-company nil t)
;; (push 'sly-company features))
(sly-setup features)))


;;; REPL

(with-eval-after-load 'sly-repl
;; Stop SLY's REPL from grabbing DEL, which is annoying when backspacing over a '('
(with-eval-after-load 'paredit
(define-key sly-repl-mode-map (read-kbd-macro paredit-backward-delete-key) nil))

;; Bind TAB to `indent-for-tab-command', as in regular Sly buffers.
(define-key sly-repl-mode-map (kbd "TAB") 'indent-for-tab-command)

(add-hook 'sly-repl-mode-hook 'sanityinc/lisp-setup))

(sly-setup features))
;;; REPL
(with-eval-after-load 'sly-repl
;; Stop SLY's REPL from grabbing DEL, which is annoying when backspacing over a '('
(with-eval-after-load 'paredit
(define-key sly-repl-mode-map (read-kbd-macro paredit-backward-delete-key) nil))

;; Bind TAB to `indent-for-tab-command', as in regular Sly buffers.
(define-key sly-repl-mode-map (kbd "TAB") 'indent-for-tab-command)

(add-hook 'sly-repl-mode-hook 'sanityinc/lisp-setup)))

(use-package sly-asdf)
(use-package sly-quicklisp)
(use-package sly-macrostep)
(use-package sly-repl-ansi-color)

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

0 comments on commit a8a2a99

Please sign in to comment.