expansions.el 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ;;;; This file contains expand-lists and abbreviations
  2. ;;;; use by `expand` and other completion packages
  3. (defconst c-expand-list
  4. '(("inc" "#include ")
  5. ("def" "#define ")
  6. ("ife" "if () {\n\n} else {\n\n}" (5 9 19))
  7. ("if" "if () {\n\n}" (5 9))
  8. ("uns" "unsigned ")
  9. ("for" "for (; ; ) {\n\n}" (5 7 9 13))
  10. ("switch" "switch () {\n\n}" (9 13))
  11. ("case" "case :\n\nbreak;\n" (6 8 16))
  12. ("do" "do {\n\n} while ();" (6 16))
  13. ("while" "while () {\n\n}" (8 12))
  14. ("default" "default:\n\nbreak;" 10)
  15. ("fmain" "int main(int argc, char *argv[])\n{\n\n}\n" 36)
  16. ("vmain" "int main(void)\n{\n\n}\n" 18))
  17. "Expansions for the C mode.")
  18. (defconst java-expand-list
  19. '(("ife" "if () {\n\n} else\n{\n\n}" (5 9 19))
  20. ("if" "if () {\n\n}" (5 9))
  21. ("uns" "unsigned ")
  22. ("for" "for (; ; ) {\n\n}" (5 7 9 13))
  23. ("switch" "switch () {\n\n}" (9 13))
  24. ("case" "case :\n\nbreak;\n" (6 8 16))
  25. ("do" "do {\n\n} while ();" (6 16))
  26. ("while" "while () {\n\n}" (8 12))
  27. ("default" "default:\n\nbreak;" 10)
  28. ("fmain" "public static void main(String[] args)\n{\n\n}\n" 42)
  29. ("nclass" "class {\n\n}\n" (7 10))
  30. ("neclass" "class extends {\n\n}\n" (7 16 19))
  31. ("naclass" "abstract class {\n\n}\n" (16 19))
  32. ("pclass" "public class {\n\n}\n"(14 17))
  33. ("peclass" "public class extends {\n\n}\n" (14 23 26))
  34. ("paclass" "public abstract class {\n\n}\n" (23 26))
  35. ("sync" "synchronized () {\n\n}" (15 19)))
  36. "Expansions for the Java mode.")