elisp macro to write function?

Posted by aaa on Stack Overflow See other posts from Stack Overflow or by aaa
Published on 2010-03-13T04:21:08Z Indexed on 2010/03/13 4:27 UTC
Read the original article Hit count: 420

Filed under:
|
|
|

hello

I have written few functions, which nearly identical, save for names. For example

; x is name, such as function/paragraph/line/etc.
(defun my-x-function
 (interactive)
 (mark-x) (do-more-stuff) (modify-x))

is there a way to put it automatically? I have a feeling this is what macros do, but I am not sure how to use them. you help/maybe small example would be great

Thanks

© Stack Overflow or respective owner

Related posts about emacs

Related posts about lisp