Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"slime-cl-indent-test.txt" was opened for no reason #483

Open
yuzumx opened this issue Jan 6, 2019 · 0 comments
Open

"slime-cl-indent-test.txt" was opened for no reason #483

yuzumx opened this issue Jan 6, 2019 · 0 comments

Comments

@yuzumx
Copy link

yuzumx commented Jan 6, 2019

Hello and sorry for my poor English.

When I start emacs, I sometimes see the slime-cl-indent-test.txt buffer.

I don't know why. Is it my configuration error?

Here is my slime configuration (Many of code comes from purcell/emacs.d):

(require-package 'slime)
(require-package 'hippie-expand-slime)

(add-hook 'lisp-mode-hook 'slime-mode)

(setq slime-contribs '(slime-repl slime-fuzzy))
(setq slime-net-coding-system 'utf-8-unix)
(setq slime-complete-symbol*-fancy t)
(setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)

(add-hook 'slime-mode-hook 'set-up-slime-hippie-expand)

;; REPL
(defun remx/slime-repl-setup ()
  "Mode setup function for SLIME REPL."
  (enable-paredit-mode)
  (indent-guide-mode -1)
  (aggressive-indent-mode)
  (set-up-slime-hippie-expand)
  (setq show-trailing-whitespace nil))

(with-eval-after-load 'slime-repl
  ;; Stop SLIME's REPL from grabbing DEL, which is annoying when backspacing over a '('
  (with-eval-after-load 'paredit
    (define-key slime-repl-mode-map (read-kbd-macro paredit-backward-delete-key) nil))
  ;; Bind TAB to `indent-for-tab-command', as in regular SLIME buffers
  (define-key slime-repl-mode-map (kbd "TAB") 'indent-for-tab-command)

  (add-hook 'slime-repl-mode-hook 'remx/slime-repl-setup))

;; Set lisp implementations
(with-eval-after-load 'slime
  (when (executable-find "sbcl")
    (add-to-list 'slime-lisp-implementations
                 '(sbcl ("sbcl") :coding-system utf-8-unix)))
  (when (executable-find "lisp")
    (add-to-list 'slime-lisp-implementations
                 '(cmucl ("lisp") :coding-system iso-latin-1-unix)))
  (when (executable-find "ccl")
    (add-to-list 'slime-lisp-implementations
                 '(ccl ("ccl") :coding-system utf-8-unix))))

(when (maybe-require-package 'slime-company)
  (add-to-list 'slime-contribs 'slime-company t))

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant