I am using emacs 24 and ubuntu 13.10.
I have slime setup and get the CL-USER REPL on invocation.
When I write a program and compile using C-c C-c or C-c C-k, it says these are undefined.
How do I verify that these keychord combinations are infact setup?
On 02/08/2014 06:46 AM, Chintan Pathak wrote:
I am using emacs 24 and ubuntu 13.10.
I have slime setup and get the CL-USER REPL on invocation.
When I write a program and compile using C-c C-c or C-c C-k, it says these are undefined.
How do I verify that these keychord combinations are infact setup?
Look to see that it says "Lisp Paredit Slime Autodoc" in the emacs status bar after you open the lisp file. If you have even a single unmatched parenthesis in the file it goes into Lisp Slime Autodoc mode instead and you won't have those key-chords defined. Look for error messages at the bottom of emacs for clues.
--Jeff
On Sat, Feb 8, 2014 at 4:43 PM, Jeff Cunningham jeffrey@jkcunningham.com wrote:
Look to see that it says "Lisp Paredit Slime Autodoc" in the emacs status bar after you open the lisp file. If you have even a single unmatched parenthesis in the file it goes into Lisp Slime Autodoc mode instead and you won't have those key-chords defined. Look for error messages at the bottom of emacs for clues.
I doubt Chintan is using Paredit. In any case, C-c C-c and C-c C-k are not defined by Paredit.
Luís Oliveira luismbo@gmail.com writes:
On Sat, Feb 8, 2014 at 4:43 PM, Jeff Cunningham jeffrey@jkcunningham.com wrote:
Look to see that it says "Lisp Paredit Slime Autodoc" in the emacs status bar after you open the lisp file. If you have even a single unmatched parenthesis in the file it goes into Lisp Slime Autodoc mode instead and you won't have those key-chords defined. Look for error messages at the bottom of emacs for clues.
I doubt Chintan is using Paredit. In any case, C-c C-c and C-c C-k are not defined by Paredit.
Yes but I do remember (in your machine ehe) that some error in the Paredit hook made `slime-mode' not kick in. That would produce the error, right?
Chitan should check if he can find those bindings in the *Help* buffer generated by
M-x describe-mode
When that command is run in a lisp buffer. He should find this there:
Slime minor mode (indicator [swank allegro]): SLIME: The Superior Lisp Interaction Mode for Emacs (minor-mode).
...
Full set of commands: key binding --- ------- ...
C-c C-c slime-compile-defun C-c C-k slime-compile-and-load-file
João
On Sat, Feb 8, 2014 at 2:46 PM, Chintan Pathak chintan.pathak@gmail.com wrote:
When I write a program and compile using C-c C-c or C-c C-k, it says these are undefined.
Where did you write your program? Was lisp-mode activated? If your file has a ".lisp" extension, Emacs should activate lisp-mode automatically.
HTH,
You can add additional file types to activate Lisp mode with a bit of emacs lisp.
For example, to enable Lisp mode for files with extension ".cl" ".gdl" and ".gendl" you can do (e.g. in your ~/.emacs):
(add-to-list 'auto-mode-alist '("\.cl\'" . lisp-mode)) (add-to-list 'auto-mode-alist '("\.gdl\'" . lisp-mode)) (add-to-list 'auto-mode-alist '("\.gendl\'" . lisp-mode))
On Sat, Feb 8, 2014 at 11:21 AM, Luís Oliveira luismbo@gmail.com wrote:
On Sat, Feb 8, 2014 at 2:46 PM, Chintan Pathak chintan.pathak@gmail.com wrote:
When I write a program and compile using C-c C-c or C-c C-k, it says
these
are undefined.
Where did you write your program? Was lisp-mode activated? If your file has a ".lisp" extension, Emacs should activate lisp-mode automatically.
HTH,
-- Luís Oliveira http://kerno.org/~luis/