slime

slime prints my (format …) calls only when called function ends

◇◆丶佛笑我妖孽 提交于 2019-11-28 02:26:19
I have emacs + sbcl + slime installed. I have this function defined (defun jugar () (let* ((nodoActual *nodo-inicial*) (estadoActual (nodo-estado nodoActual)) (timeStart nil) (timeEnd nil) ) (loop while (not (es-estado-final estadoActual)) do (setf *hojas* 0) (setf timeStart (get-universal-time)) (setf nodoActual (decision-minimax nodoActual *profundidad* timeStart)) (setf timeEnd (get-universal-time)) (setf estadoActual (nodo-estado nodoActual)) (imprime-en-fichero estadoActual) (format t "Hojas analizadas: ~a ~%" *hojas*) (format t "Tiempo empleado: ~a ~%~%" time)) )) that makes a series of

Emacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X

£可爱£侵袭症+ 提交于 2019-11-27 18:52:30
I used Aquamacs so far, and I need to install and run Clojure using SLIME . I googled to get some way to use Clojure on SLIME of Aquamacs, but without success. Questions Is it possible to install Clojure on Aquamacs? Or, can you guess why Clojure on Aquamacs doesn't work? Is it normal that Emacs and Aquamacs can't share the same ELPA ? Is it possible to use ELPA to install Conjure on Emacs/Aquamacs? I was told that one can use 'lein swank' to run as a server, do you know how to do that? Sequences that I tried (and half succeeded) I tried with Mac OS X Emacs , and by following the steps I could

How to Reload files upon save when using swank+leiningen+emacs

亡梦爱人 提交于 2019-11-27 13:38:12
问题 I'm looking to set up slime+lein-swank to reload source files referenced from the repl when i save the file. currently i do this: edit file save file switch to repl (use :reload-all 'com.package.namespace) test stuff I want to not have to remember to do step 4. 回答1: You can use SLIME's C-c C-k before switching to the REPL, for slime-compile-and-load-file . It will prompt you to save the file if you haven't already. When it's done, the things which you've redefined should be available at the

Using Emacs as an IDE

点点圈 提交于 2019-11-27 02:28:55
Currently my workflow with Emacs when I am coding in C or C++ involves three windows. The largest on the right contains the file I am working with. The left is split into two, the bottom being a shell which I use to type in compile or make commands, and the top is often some sort of documentation or README file that I want to consult while I am working. Now I know there are some pretty expert Emacs users out there, and I am curious what other Emacs functionally is useful if the intention is to use it as a complete IDE. Specifically, most IDEs usually fulfill these functions is some form or

Setting SLIME in emacs

旧巷老猫 提交于 2019-11-27 01:56:00
问题 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? 回答1: Some Linuxes come with CMUCL preinstalled, but since you

automatically disable a global minor mode for a specific major mode

喜夏-厌秋 提交于 2019-11-26 17:44:41
I have centered-cursor-mode activated globaly, like this: (require 'centered-cursor-mode) (global-centered-cursor-mode 1) It works fine, but there are some major modes where I would like to disable it automatically. For example slime-repl and shell. There is another question dealing with the same problem, but another minor mode. Unfortunately the answers only offer workarounds for this specific minor mode (global-smart-tab-mode), that doesn't work with centered-cursor-mode. I tried this hook, but it has no effect. The variable doesn't change. (eval-after-load "slime" (progn (add-hook 'slime

Using Emacs as an IDE

霸气de小男生 提交于 2019-11-26 12:33:47
问题 Currently my workflow with Emacs when I am coding in C or C++ involves three windows. The largest on the right contains the file I am working with. The left is split into two, the bottom being a shell which I use to type in compile or make commands, and the top is often some sort of documentation or README file that I want to consult while I am working. Now I know there are some pretty expert Emacs users out there, and I am curious what other Emacs functionally is useful if the intention is

automatically disable a global minor mode for a specific major mode

[亡魂溺海] 提交于 2019-11-26 05:34:17
问题 I have centered-cursor-mode activated globaly, like this: (require \'centered-cursor-mode) (global-centered-cursor-mode 1) It works fine, but there are some major modes where I would like to disable it automatically. For example slime-repl and shell. There is another question dealing with the same problem, but another minor mode. Unfortunately the answers only offer workarounds for this specific minor mode (global-smart-tab-mode), that doesn\'t work with centered-cursor-mode. I tried this