From: Stefan Bund Date: Tue, 13 May 2014 17:17:31 +0000 (+0200) Subject: cython helper X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=3d370602ea891fbc150d425a9e1eb4d4c3b38763;p=emacsstuff.git cython helper --- diff --git a/cc-ide/cc-ide.el b/cc-ide/cc-ide.el index 2594614..3d819ad 100644 --- a/cc-ide/cc-ide.el +++ b/cc-ide/cc-ide.el @@ -123,8 +123,11 @@ correctly included.") (nil nil separator) ;; documentation - ("h" ccide-hide-all-doxy-comments "Hide all Doxygen comments") - ("s" ccide-show-all-comments "Show all Doxygen comments") + ("h" ccide-hide-all-doxy-comments "Hide all Doxygen comments") + ("s" ccide-show-all-comments "Show all Doxygen comments") + + ;; cython + ("yp" ccide-grab-pxd-fn "Generate pxd function/method decl") ; ;; CORBA ; ("Cg" ccide-gen-corba-impl "Generate CORBA impl") @@ -1460,6 +1463,17 @@ instatiations at point." (provide 'cc-ide) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; cython support + +(defun ccide-grab-pxd-fn () + (interactive) + (save-excursion + (c-beginning-of-defun-or-decl) + (let ((defn (c-build-pxd))) + (kill-new (cadr defn)) + (message (concat (car defn)))))) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; other stuff (defun ccide-open-compilation-frame ()