Tuesday, September 30, 2008

Customize PAREDIT

I love PAREDIT on the whole, but hate the default behavior of ';' and ')'. So here how to fix this and made PAREDIT slightly less aggressive (should be added into the ~/.emacs file):

(require 'paredit)
(eval-after-load 'paredit
'(progn
(define-key paredit-mode-map (kbd ";") 'self-insert-command)
(define-key paredit-mode-map (kbd ")") 'paredit-close-parenthesis)
(define-key paredit-mode-map (kbd "M-)") 'paredit-close-parenthesis-and-newline)))

Monday, September 29, 2008

SBCL and default location for ASDF-INSTALL

To make asdf-install find default location in sbcl:
(fmakunbound 'asdf-install::where)
(defun asdf-install::where ()
(first asdf-install::*locations*))

This tip's been given by xach