unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Properly indenting a defun (sexp tips)
@ 2006-10-15 22:40 Tim Johnson
  2006-10-16  0:16 ` Drew Adams
  2006-10-16  0:39 ` Dieter Wilhelm
  0 siblings, 2 replies; 4+ messages in thread
From: Tim Johnson @ 2006-10-15 22:40 UTC (permalink / raw)


I have a piece of code that looks like this:
;; code:
(defun mu-modifier-char ()
  "Create colorized modifier symbol"
  (interactive)
  (let (my-char)
	(save-excursion
	  (backward-char 1)
	  (setq my-char (char-at))
	  (cond ((member my-char mu-modifiers)
			 (upcase my-char)
			 )
			)
	)))
;; And I want it to look like this
(defun mu-modifier-char ()
  "Create colorized modifier symbol"
  (interactive)
  (let (my-char)
	(save-excursion
	  (backward-char 1)
	  (setq my-char (char-at))
	  (cond ((member my-char mu-modifiers)
			 (upcase my-char))))))
;; that is, properly indented per emacs-lisp-mode

Is there a single command to do this?
If not, being pointed to pertinent documentation
and URLs to discussions on this topic would be
most welcome.

Thanks
tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-16  1:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15 22:40 Properly indenting a defun (sexp tips) Tim Johnson
2006-10-16  0:16 ` Drew Adams
2006-10-16  0:39 ` Dieter Wilhelm
2006-10-16  1:12   ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).