patch-lib_jed_rc 994 B

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-lib_jed_rc,v 1.5 2009/10/27 21:51:53 sthen Exp $
  2. --- lib/jed.rc.orig Mon Feb 13 18:51:58 2006
  3. +++ lib/jed.rc Sat Oct 10 18:08:25 2009
  4. @@ -149,7 +149,7 @@ WRAP_INDENTS = 0; % Non zero indents next line after w
  5. %---------------------------------------------------------------------------
  6. % C-mode indentation style
  7. %---------------------------------------------------------------------------
  8. -c_set_style ("jed"); % or "linux", "gnu", "bsd", "k&r"
  9. +c_set_style ("knf"); % or "jed" or "linux", "gnu", "bsd", "k&r"
  10. #ifdef IBMPC_SYSTEM
  11. % If non-zero, treat file names as case sensitive
  12. @@ -237,4 +237,20 @@ define dired_hook ()
  13. {
  14. %local_unsetkey ("^K");
  15. %local_setkey ("dired_kill_line", "^K");
  16. +}
  17. +
  18. +define c_set_style_hook (style)
  19. +{
  20. + if (strlow(style) == "knf")
  21. + {
  22. + TAB_DEFAULT = 8;
  23. + USE_TABS = 1;
  24. + ADD_NEWLINE = 1;
  25. + C_INDENT = 8;
  26. + C_BRACE = 0;
  27. + C_BRA_NEWLINE = 0;
  28. + C_CONTINUED_OFFSET = 0;
  29. + C_Colon_Offset = 0;
  30. + C_Comment_Column = 0;
  31. + }
  32. }