slime

(Emacs) Text is read only?

隐身守侯 提交于 2019-12-02 23:25:05
So I was working in emacs and the suddenly, the slime-repl sbcl says text is read only. Well that's great because now I can't type anything into it. How do I fix? devon "Buffer is read-only" can be cured by C-x C-q but as Drew & phils said, "Text is read-only" is very different -- it means some part of the buffer has a read-only property. Try moving away from the read-only part, e.g., to the end of the buffer. Emacs Lisp Manual > elisp.info > Text > Text Properties > Special Properties Since changing properties counts as modifying the buffer, it is not possible to remove a `read-only' property

What does the 'swank-clojure' do exactly, and do we have 'swank-SOMETHING_ELSE'?

余生长醉 提交于 2019-12-02 20:51:43
My superficial understanding is that 'swank-clojure' makes 'M-x slime-connect' possible. I mean, it gives a connection to a clojure server something like 'lein swank'. Is my understanding correct? If not, what's the purpose of swank? Then, is there any 'swank-SOMETHING_ELSE' for other lisp like implementations? For example, swank-clisp? Do I need 'swank-clojure' for using SLIME/Clojure with 'M-x slime'? ADDED I found this link pretty useful. SLIME and swank form a client server architecture to run and debug lisp programs. SLIME is the emacs frontend and swank is the backend. In between they

Common Lisp支持中文编辑和编译的windows下环境搭建志

折月煮酒 提交于 2019-12-01 10:22:03
第一步,安装emacs+slime+sbcl/ccl/... 安装windows下的 emacs , http://ftp.gnu.org/gnu/emacs/windows/emacs-24.3-bin-i386.zip 安装windows 下的 sbcl (注意下载win下的文件), http://www.sbcl.org/platform-table.html (点击相应配置对应表格中的方块即可下载). 2.1安装完成后重启系统,否则会提示:fatal error encountered in SBCL pid 10236(tid 9971200): can't find core file at XXXXX。检测环境变量是否生效的方法是:打开windows控制台,输入sbcl,回车,看是否能正确执行. 2.2如果路径中有空格,则配置文件中就会有空格,安装时不会出错,但是在emacs中运行M-x slime时会出现问题:apply: Spawning child process: invalid argument. 3.下载 slime , http://github.com/slime/slime ,解压缩到合适的路径即可. 具体问题可以参考下列博客 http://www.tuicool.com/articles/FBzANvE 第二步,emacs的配置 打开系统路径:C:

LispBox 集成开发环境分析 (一)Windows版本分析

巧了我就是萌 提交于 2019-12-01 10:21:11
LispBox 集成开发环境分析 (一)Windows版本分析 LispBox 是一个开源的LISP 集成开发环境,由 SLIME (The Superior Lisp Interaction Mode for Emacs) 交互接口、 Quicklisp 库管理器、 Clozure Common Lisp 编译器和 Emacs 编辑器组成,有WINDOWS、LINUX和MAC OSX三种版本,目前已经停止更新,下载地址为: http://www.common-lisp.net/project/lispbox/ 使用方法很简单,只要把对应的版本下载回去,然后直接执行对应的程序即可启动整个LISP 开发环境了,比如: 1、在WINDOWS下执行 lispbox.bat 2、在LINUX下执行 lispbox.sh 3、在MAC环境下执行 Emacs 对于新手来说不需要进行任何配置工作,非常方便,所以虽然 LispBox 已经停止更新,但是对于Lisp初学者我还是推荐使用LispBox。 本文是一个学习记录,为了避免学了后面的忘记前面的,所以把学习过程中每个阶段理解的内容都用书面的形式做一个总结,以便温故而知新。 首先从LISPBOX的目录结构开始: 解压后的Lispbox 目录名为 "\lispbox-0.7-ccl-1.6-windowsx86\lispbox-0.7\"

Using clojure.contrib functions in slime REPL

╄→尐↘猪︶ㄣ 提交于 2019-11-30 17:35:12
I want to use the functions in the clojure.contrib.trace namespace in slime at the REPL. How can I get slime to load them automatically? A related question, how can I add a specific namespace into a running repl? On the clojure.contrib API it describes usage like this: (ns my-namespace (:require clojure.contrib.trace)) But adding this to my code results in the file being unable to load with an "Unable to resolve symbol" error for any function from the trace namespace. I use leiningen 'lein swank' to start the ServerSocket and the project.clj file looks like this (defproject test-project "0.1.0

emacs setup for both clojure and common lisp with slime-fancy (slime-autodoc)

亡梦爱人 提交于 2019-11-30 11:08:59
问题 I set up emacs for both clojure and common lisp, but I want also (slime-setup '(slime-fancy)) for common lisp. If I add that line to init.el, clojure won't work: it gives me repl, but it hangs after I run any code. My configuration For clojure: I set up clojure-mode, slime, slime-repl via ELPA I run $ lein swank in project directory Then M-x slime-connect to hack clojure For common lisp I place this after ELPA code in init.el: (add-to-list 'load-path "~/.elisp/slime") (require 'slime) (add-to

Running Clojure and other Lisp at the same time on Emacs

◇◆丶佛笑我妖孽 提交于 2019-11-30 09:48:41
I use Aquamacs , and Aquamacs is pre-equipped with SLIME . (setq inferior-lisp-program "/usr/local/bin/sbcl") #####!!! (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME/contrib") (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME") (require 'slime) (slime-setup) As is asked in somewhere, I try to use Clojure by adding this code. (add-to-list 'load-path "~/clojure/clojure-mode") (setq inferior-lisp-program "/Users/smcho/bin/clj") ################ (require 'clojure-mode) (setq auto-mode-alist (cons '("\\.clj$ . clojure-mode") auto-mode-alist))

Writing Common Lisp code that executes from the command line, but not inside the interpreter

孤街浪徒 提交于 2019-11-30 07:04:45
When writing Common Lisp code, I use SLIME. In particular, I compile the buffer containing definitions of functions by using C-C C-k, and then switch to the REPL to run those functions. Putting executable code to run those functions in the buffer does not appear to work so well. If the code has bugs it can make a mess. It would be handy to have a way to include code that doesn't get compiled in the buffer, but do get run from the command line, e.g. when doing sbcl --script foo.lisp If that were the case, I would not have to keep adding and removing code every time I wanted to run code from the

Writing Common Lisp code that executes from the command line, but not inside the interpreter

混江龙づ霸主 提交于 2019-11-29 08:41:20
问题 When writing Common Lisp code, I use SLIME. In particular, I compile the buffer containing definitions of functions by using C-C C-k, and then switch to the REPL to run those functions. Putting executable code to run those functions in the buffer does not appear to work so well. If the code has bugs it can make a mess. It would be handy to have a way to include code that doesn't get compiled in the buffer, but do get run from the command line, e.g. when doing sbcl --script foo.lisp If that

Setting SLIME in emacs

試著忘記壹切 提交于 2019-11-28 07:41:40
I was trying to install SLIME. I downloaded the zipped package and according to the README file, I have to put this piece of code in my Emacs configuration file: (add-to-list 'load-path "~/hacking/lisp/slime/") ; your SLIME directory (setq inferior-lisp-program "/opt/sbcl/bin/sbcl") ; your Lisp system (require 'slime) (slime-setup) Setting the SLIME directory is straightforward, but what about the Lisp "system"? How do I find it? Some Linuxes come with CMUCL preinstalled, but since you seem to want to use SBCL, you would need to install it. In terminal, or in Emacs M-x shell . If you are using