Guest User

Untitled

a guest
Jan 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #|
  2. (add-to-list 'load-path
  3. "~/.emacs.d/plugins/yasnippet-0.6.1c")
  4. (require 'yasnippet) ;; not yasnippet-bundle
  5. (yas/initialize)
  6. (yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
  7.  
  8. (setq c-default-style "bsd" c-basic-offset 4)
  9.  
  10. (defun my-make-CR-do-indent () (define-key c-mode-base-map "\C-m" 'c-context-line-break))
  11. (add-hook 'c-initialization-hook 'my-make-CR-do-indent)
  12.  
  13. (define-skeleton c-new
  14. ""
  15. ""
  16. "#include <stdio.h>\n"
  17. "#include <stdlib.h>\n"
  18. "\n"
  19. "int main(int argc, int *argv[]){\n"
  20. "\n"
  21. " return (EXIT_SUCCESS)\n"
  22. "}\n")
  23. |#
Add Comment
Please, Sign In to add comment