Previous: Setup of an interactive environment, Up: Detailed installation


2.3.10 Emacs configuration

Finally, when you have installed SLIME, you may put the following lines in the file .emacs in your home directory:

     (setq *femlisp-root* "PLEASE_INSERT_CORRECT_PATH/femlisp/")
     (add-to-list 'load-path (concat *femlisp-root* "elisp"))
     (require 'femlisp)
     
     ;;; for showing the SLIME buffer if it is hidden
     (defun show-repl-maybe-start-slime ()
       (interactive)
       (if (slime-connected-p)
           (slime-display-output-buffer)
           (slime)))
     (global-set-key [f9] 'show-repl-maybe-start-slime)

Now the Emacs command M-x femlisp should fire up SLIME and load Femlisp. Whenever your SLIME buffer is hidden, you can bring it up again by pressing F9.