diff options
-rw-r--r-- | emacs | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -104,15 +104,18 @@ (c-set-offset 'arglist-cont-nonempty '(c-lineup-arglist-tabs-only c-lineup-gcc-asm-reg)) (add-hook 'c-mode-common-hook - '(lambda () - (turn-on-auto-fill) - (setq fill-column 80) - (setq comment-column 60) - (modify-syntax-entry ?_ "w") ; now '_' is not considered a word-delimiter - (c-set-style "linux") ; set indentation style - (define-key c-mode-base-map (kbd "M-o") 'eassist-switch-h-cpp) - (define-key c-mode-base-map (kbd "M-m") 'eassist-list-methods) - (define-key c-mode-base-map (kbd "C-o") 'semantic-complete-jump-local))) + (lambda () + (setq fill-column 80) + (turn-on-auto-fill) + + ;; now '_' is not considered a word-delimiter + (modify-syntax-entry ?_ "w") + + ;; set indentation style + (c-set-style "linux") + (local-set-key (kbd "M-m") 'eassist-list-methods) + (local-set-key (kbd "C-o") 'semantic-complete-jump-local) + (local-set-key (kbd "C-c o") 'ff-find-other-file))) (global-set-key [C-return] 'dabbrev-expand) (define-key esc-map [C-return] 'dabbrev-completion) |