diff -r 47d5df23c502 -r 0fda818a8b6a hoersten-c-style.el --- a/hoersten-c-style.el Fri Jan 09 12:37:12 2009 -0600 +++ b/hoersten-c-style.el Thu Feb 05 10:26:08 2009 -0600 @@ -1,4 +1,5 @@ -;; ~/.emacs.d/hoersten-c-style.el - Luke Hoersten - v1.0 +;; ~/.emacs.d/hoersten-c-style.el +;; Luke Hoersten ;; hoersten c++-style (c-add-style "hoersten" @@ -26,17 +27,21 @@ (cpp-macro . -)))) ;; c-like language settings (c, c++, java, etc.) +(require 'doxymacs) (setq-default c-hungry-delete-key t) ; enable hungry delete (setq-default c-default-style "hoersten") ; load c-style (add-hook 'c-mode-common-hook - (lambda() + (lambda () ;; indentation (setq tab-width 3) (setq c-basic-offset 3) (setq indent-tabs-mode t) + (setq standard-indent 3) (c-toggle-auto-newline t) ; auto newline - (auto-fill-mode t) ; word wrap + (c-subword-mode t) + (doxymacs-mode t) + (doxymacs-font-lock) ;; custom keys (local-set-key (kbd "C-c f") 'ff-find-other-file) ; toggle header/source file @@ -47,9 +52,6 @@ (local-set-key (kbd "") 'hs-hide-all) (local-set-key (kbd "") 'hs-show-all) (hs-minor-mode t) ; enable hide-show mode - (hs-hide-all) ; hide all blocks by default + )) - ;; highlight todos - (font-lock-add-keywords - nil - '(("\\([@]\\(TODO\\|todo\\|warning\\|note\\)\\)" 1 font-lock-warning-face t))))) +(provide 'hoersten-c-style) \ No newline at end of file