.emacs for sbcl and slime

Times ago i had some experience with Emacs.
It was a total frustration (but feeling to be a part of a legend)
Vim had a steep learning path too
but it was paying back at the end.

Later i am interested in Common Lisp
So obviously Slime and Emacs.
And i believe this was the first time i met Emacs.
It’s not meant to be an text editor,
It’s a lisp editor, compiler, interpreter and
a RCP (Rich Client Platform) for Lisp applications.

When i watch some videos about lisp machines of symbolics,
i totally changed my view of what Emacs stands for.

I will put my .emacs settings here,
so i wont have to search them again and again after a new install :


;;
(fset 'yes-or-no-p 'y-or-n-p)

;; no startup screen
(setq inhibit-startup-screen t)

;; no-tool bar
(tool-bar-mode nil)

;;
(show-paren-mode 't)

;; cua selection
(cua-selection-mode 1)
(put 'erase-buffer 'disabled nil)

;; SLIME - BEGIN

;; HyperSpec documentation
(setq browse-url-browser-function 'browse-url-firefox)
(setq common-lisp-hyperspec-root "/usr/local/share/doc/clisp-hyperspec/HyperSpec/")

;; Required If you use utf-8 strings.
(set-language-environment "UTF-8")
(setq slime-net-coding-system 'utf-8-unix)

(add-to-list 'load-path "~/.emacs.d/plugins/slime")

; sbcl with less memory consumption
(setq inferior-lisp-program "/usr/local/bin/sbcl --dynamic-space-size 100")

(require 'slime-autoloads)
(slime-setup '(slime-fancy))

(global-set-key [f12] 'slime-selector)

;; SLIME - END

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s