Skip to content

Commit

Permalink
Drop faulty reference to set-up-sly-hippie-expand
Browse files Browse the repository at this point in the history
Fixes #856
  • Loading branch information
purcell committed Dec 14, 2023
1 parent 4ea0b79 commit cd915db
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions lisp/init-sly.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,17 @@

;;; Lisp buffers

(defun sanityinc/sly-setup ()
"Mode setup function for sly lisp buffers."
(set-up-sly-hippie-expand))

(with-eval-after-load 'sly
(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))
(add-hook 'sly-mode-hook 'sanityinc/sly-setup))
(sly-setup features)))


;;; REPL

(defun sanityinc/sly-repl-setup ()
"Mode setup function for sly REPL."
(sanityinc/lisp-setup)
(set-up-sly-hippie-expand))

(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
Expand All @@ -39,7 +29,7 @@
;; 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/sly-repl-setup))
(add-hook 'sly-repl-mode-hook 'sanityinc/lisp-setup))


(provide 'init-sly)
Expand Down

0 comments on commit cd915db

Please sign in to comment.