Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
useful elisp
(defun tac-python-header ()
(interactive "*")
(occur "^\\s-*\\(\\(class\\)\\|\\(def\\)\\)\\|\\(@\\)")
)
(define-skeleton py-np-def
"Skeleton for function definition that includes numppydoc style "
"Name: "
"def " str "(" ("Parameter, %s: " (unless (equal ?\( (char-before)) ", ")
str) "):" \n
"\"\"\""\n
"" - \n
"Parameters"\n
"----------"\n
""\n
"Returns"\n
"-------"\n
"\"\"\"" \n ; Fixme: extra space inserted -- why?).
> _ \n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment