Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #|
- (add-to-list 'load-path
- "~/.emacs.d/plugins/yasnippet-0.6.1c")
- (require 'yasnippet) ;; not yasnippet-bundle
- (yas/initialize)
- (yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
- (setq c-default-style "bsd" c-basic-offset 4)
- (defun my-make-CR-do-indent () (define-key c-mode-base-map "\C-m" 'c-context-line-break))
- (add-hook 'c-initialization-hook 'my-make-CR-do-indent)
- (define-skeleton c-new
- ""
- ""
- "#include <stdio.h>\n"
- "#include <stdlib.h>\n"
- "\n"
- "int main(int argc, int *argv[]){\n"
- "\n"
- " return (EXIT_SUCCESS)\n"
- "}\n")
- |#
Add Comment
Please, Sign In to add comment