Let's not try to be too clever. I agree. I think the behavior given by Juanma's hook code using common-lisp-indent-function gives good results:
(add-hook 'emacs-lisp-mode-hook #'(lambda () (unless (assoc-string "cl-indent" load-history) (load "cl-indent" nil t)) (set (make-local-variable 'lisp-indent-function) 'common-lisp-indent-function) (setq lisp-indent-maximum-backtracking 10) (put 'define-derived-mode 'common-lisp-indent-function '(4 4 4 2 &body)) (put 'if 'common-lisp-indent-function '(nil nil &body)))) What about just integrating that behavior (i.e. without loading cl-indent)? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel