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

Already on GitHub? Sign in to your account

how to configue the common lisp #70

Closed
mut0u opened this Issue Mar 14, 2013 · 10 comments

Comments

Projects
None yet
4 participants

mut0u commented Mar 14, 2013

I am a newer for lisp , i use your emacs configure on my emacs24.2.

I download the newest slime and clisp. When i type the M x slime , it display "apply: Searching for program: no such file or directory, lisp". so i and these on init.el:
(setq inferior-lisp-program "/usr/bin/clisp") ;
(add-to-list 'load-path "~/slime") ;
(require ’slime)
(slime-setup) ;

but i do not work .
so , i create a .emacs file and put these into it ,and remove the emacs.d directory the slime seems work well .

And i find there is a character in every line at colum 70 when the line length is lower then 70. How to remove this?

Thanks for your attention.

Owner

purcell commented Mar 14, 2013

Okay, the odd character at column 70 is probably due to a bug in fci-mode. It has various quirks, so I've disabled it by default (see commit ea3c607).

Regarding slime, the default slime config is optimised for use with clojure, which requires an older slime. I'd like to make the config work perfectly with common lisp too, but I don't currently have the time. In the meantime, the following instructions might help you:

https://github.com/purcell/emacs.d/issues/56#issuecomment-13031541

-Steve

mut0u commented Mar 14, 2013

I have to configure your emacs from zero . I just configure some base issue like ido , color , and theme .And then I configure the slime and it success. I have a wonder that emacs24 has embeded the color-theme-select . But the customize-themes doesn't match all of them. It has only a little themes . Do i have to configure the theme like you with lots to codes in it raher than "(require 'color-theme) (load-theme 'wombat t)" in the init-theme.el ?

Owner

purcell commented Mar 14, 2013

Regarding themes, in Emacs 24 you don't need color-theme: customize-themes should be enough.

But if you're starting from an empty configuration, rather than the files in this repository, then I can't really offer any help. :-/

mut0u commented Mar 14, 2013

I am still studying so i want to know why you configure like this . I add one file a time to watch its behavior. :-)

customize-themes have 14 themes and the color-theme-selection have more then 70 themes.And the configure is very simple like :
(require 'color-theme-library)
(color-theme-arjen)

:-)

Owner

purcell commented Mar 14, 2013

Aha, good strategy.

color-theme is the old theme system. It will work in Emacs 24, but it isn't connected to the customize-themes system added in Emacs 24. I would recommend ignoring color-theme and color-theme-library, and look on MELPA or Marmalade for themes.

This emacs.d repo includes 7 themes which I wrote: see the "sanityinc*" themes.

Owner

purcell commented Mar 15, 2013

Yes, I can get Common Lisp to work locally by fiddling around a bit -- I just haven't made the emacs.d slime code work correctly for both Clojure and Common Lisp.

mut0u commented Mar 24, 2013

i found a wild thing when i configure my common lisp.

(setq inferior-lisp-program "/usr/bin/sbcl") ;; this is my sbcl path
(add-to-list 'load-path "~/slime") ;my slime path
(require 'slime)
(slime-setup '(slime-fancy))

(slime) ;M-x slime ;;; this line is wild.

when i delete the last line , i want to run the slime by hand. When i run the emacs, the message buffer said "slime/slime.el:Error: Don't know how to compile nil" . I guess this is not important. When i typed the M- slime ,
it said that searching for program : no such file or directory ,lisp.

but when i add the last line in my init-common-lisp.el file , it works. And it create a thread for sbcl. When i see the message buffer , it also say "slime/slime.el:Error: Don't know how to compile nil".

I can not bear of automatically creating a sbcl thread when i run emacs every singular time .
I have no idea about this.
So I hope you can make the slime work correctly for both Common lisp and the Clojure in future.
:-)

I found same problem on here

look like to remove slime code, let it can be compile

So I just removed the following chunk in slime.el:

(require 'bytecomp)
(let ((byte-compile-warnings '()))
(mapc #'byte-compile
'(slime-alistify
slime-log-event
slime-events-buffer etc...

purcell added a commit that referenced this issue Sep 25, 2013

Drop clojure slime support, and make slime work with common lisp
See #56, #57, #70

If upgrading, first remove ~/.emacs.d/elpa/slime-fuzzy* and
~/.emacs.d/elpa/slime-repl*, then restart Emacs.

arkiver pushed a commit to arkiver/emacs.d that referenced this issue Oct 4, 2013

Drop clojure slime support, and make slime work with common lisp
See #56, #57, #70

If upgrading, first remove ~/.emacs.d/elpa/slime-fuzzy* and
~/.emacs.d/elpa/slime-repl*, then restart Emacs.
Owner

purcell commented Oct 4, 2013

This now works out of the box.

@purcell purcell closed this Oct 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment