This time I will not to learn Lisp with Vim, but with Emacs.
I am following Practical Common Lisp and found there's a so-called Lisp in a Box package, but I decided not to use it now. My plan is to set up a working environment in Ubuntu using more common approaches.
Here are something I have done so far, and they are left here as a note.
- Installed Emacs, Slime, and CLisp: $sudo apt-get install emacs slime clisp
- Created ~/.emacs.d/slime/ (to be checked...)
- Add ~/.emacs with the content (copied from websites, some functions are not clear to me):
- After adding MELPA, installed auto-complete by M-x package-install
- Also installed evil which enable ``evil-mode'' for Vim-like key strokes
- Use M-x slime to start it and the clisp
(when (>= emacs-major-version 24)
'("melpa" . "http://melpa.org/packages/")
(setq inferior-lisp-program "clisp")
;; Setup load-path, autoloads and your lisp system
(add-to-list 'load-path "~/.emacs.d/slime/")
;; Also setup the slime-fancy contrib
;;(add-to-list 'slime-contribs 'slime-fancy)
;;(setq tab-always-indent 'complete)
;;; for auto-complete
;(add-to-list 'ac-modes 'lisp-mode)
(add-to-list 'completion-styles 'initials t)