all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to make emacs indent my redefined defun? (in common lisp code)
@ 2008-08-22  8:26 Pedro Kröger
  0 siblings, 0 replies; only message in thread
From: Pedro Kröger @ 2008-08-22  8:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

In a project I'm working (in common lisp) we use a redefined defun
that exports the
name of the function by default and may have the key :private to
prevent the function's name from being exported. The syntax is like
defmethod's:

;;; the symbol bar is exported
(defun bar ()
   ....)

;;; the symbol foo is not exported
(defun foo :private ()
   ...)

How to make emacs indent the 'foo' function correctly? I suppose the
function that indents defmethod should work, but I don't know how to
make emacs use this function for defuns. I tried:

(put 'defun 'common-lisp-indent-function 'lisp-indent-defmethod)

(setq lisp-indent-defun-method 'lisp-indent-defmethod)

But it doesn't work. Any ideas?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-22  8:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22  8:26 how to make emacs indent my redefined defun? (in common lisp code) Pedro Kröger

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.