From 3de999875e706f25d939f9d8322ca967a43dcb90 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 25 Apr 2012 00:18:43 +0200 Subject: emacs: reformatted c-mode settings --- emacs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/emacs b/emacs index a653a60..cfb6c13 100644 --- a/emacs +++ b/emacs @@ -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) -- cgit v1.2.3