diff options
| author | Luke Hoersten <[email protected]> | 2009-02-05 10:26:08 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2009-02-05 10:26:08 -0600 |
| commit | f9311a173ce168019a07ed6420c812a83e2ae669 (patch) | |
| tree | 0924645c578e37da586d3c85b0959baa0f7055fc /hoersten-c-style.el | |
| parent | aa4561ae738543deeaac27557beb95cd2a4080ce (diff) | |
Added doxymacs and provides for requires.
Diffstat (limited to 'hoersten-c-style.el')
| -rw-r--r-- | hoersten-c-style.el | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/hoersten-c-style.el b/hoersten-c-style.el index 28405e6..feed4ac 100644 --- a/hoersten-c-style.el +++ b/hoersten-c-style.el @@ -1,4 +1,5 @@ -;; ~/.emacs.d/hoersten-c-style.el - Luke Hoersten - v1.0 +;; ~/.emacs.d/hoersten-c-style.el +;; Luke Hoersten <[email protected]> ;; 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 "<f1>") 'hs-hide-all) (local-set-key (kbd "<f2>") '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 |
