How to make emacs properly indent if-then-else construct in elisp
Posted
by Mad Wombat
on Stack Overflow
See other posts from Stack Overflow
or by Mad Wombat
Published on 2010-04-15T02:12:51Z
Indexed on
2010/04/15
2:23 UTC
Read the original article
Hit count: 313
emacs
When I indent if-then-else construct in emacs lisp, the else block doesn't indent properly. What I get is:
(defun swank-clojure-decygwinify (path) "Convert path from CYGWIN UNIX style to Windows style" (if (swank-clojure-cygwin) (replace-regexp-in-string "\n" "" (shell-command-to-string (concat "cygpath -w " path))) (path)))
where else form is not indented at the same level as the then form. Is there an obvious way to fix this?
© Stack Overflow or respective owner