Created
November 2, 2012 10:48
-
-
Save mgallego/4000114 to your computer and use it in GitHub Desktop.
Jean Claude Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun jean-claude (var) | |
"print-a-php-var-dump" | |
(interactive "sVar:") | |
(setq init-point (point)) | |
(insert (concat "echo '<pre>';\nvar_dump(" var ");\necho '<\pre>';")) | |
(indent-region init-point (point)) | |
) | |
(defun doctrine-jean-claude (var) | |
"print-a-php-var-dump" | |
(interactive "sVar:") | |
(setq init-point (point)) | |
(insert (concat "echo '<pre>';\n\\Doctrine\\Common\\Util\\Debug::dump(" var ");\necho '<\pre>';")) | |
(indent-region init-point (point)) | |
) | |
(define-key sf-mode-keymap | |
(kbd "C-c C-j j") | |
'jean-claude | |
) | |
(define-key sf-mode-keymap | |
(kbd "C-c C-j d") | |
'doctrine-jean-claude | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment