[CM] clm on os x

Rick Taube taube@uiuc.edu
Tue, 17 Oct 2006 08:42:32 -0500


now sure whats up with indentation.
try adding this to a ~/.emacs file:

(require 'slime)
(define-key slime-mode-map (kbd "TAB") 'slime-indent-anything)

(defun slime-indent-anything ()
   "Do line indentation/symbol completion; indent region if
selected; indent whole defun if prefixed."
   (interactive)
   (if current-prefix-arg
       (slime-reindent-defun )
     (if (and (and mark-active (not (null (mark))))
	     (> (count-lines (region-beginning) (region-end)) 1))
	(lisp-indent-region (region-beginning) (region-end))
       (slime-indent-and-complete-symbol))))