init-ccc.el 1009 B

1234567891011121314151617181920212223242526272829303132333435
  1. ;;; init-ccc.el --- .Emacs Configuration -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. ;;----------------------------------------------------------------------------
  6. ;; c Mode
  7. ;;----------------------------------------------------------------------------
  8. (add-hook 'c-mode-hook
  9. (lambda ()
  10. (setq indent-tabs-mode t)
  11. (setq c-basic-offset 4)
  12. (setq tab-width 4)))
  13. ;;----------------------------------------------------------------------------
  14. ;; c++ Mode
  15. ;;----------------------------------------------------------------------------
  16. (add-hook 'c++-mode-hook
  17. (lambda ()
  18. (setq indent-tabs-mode t)
  19. (setq c-basic-offset 4)
  20. (setq tab-width 4)))
  21. ;; This is my default indent.
  22. ;; After moving the cursor to line 2 I see that the relevant symbol is comment-intro.
  23. (c-set-offset 'comment-intro 6)
  24. (provide 'init-ccc)
  25. ;; Local Variables:
  26. ;; byte-compile-warnings: (not free-vars)
  27. ;; End:
  28. ;;; init-ccc.el ends here