From c7ffe421c2d5d36f6bdaf4b6918997ee91382693 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 24 Jan 2010 22:49:41 +0100 Subject: modified c/c++-mode, added #include snippets --- emacs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'emacs') diff --git a/emacs b/emacs index ace9e3e..aab5c04 100644 --- a/emacs +++ b/emacs @@ -275,7 +275,7 @@ (require 'uniquify) (setq uniquify-buffer-name-style 'reverse) -; c-mode stuff +; c/c++-mode stuff (setq indent-tabs-mode t) (setq tab-width 8) (setq c-default-style "linux") @@ -288,14 +288,15 @@ (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))) (global-set-key [C-return] 'dabbrev-expand) (define-key esc-map [C-return] 'dabbrev-completion) (global-set-key [f12] 'indent-region) -;; Enable Doxygen syntax highlighting for C and C++ +; Enable Doxygen syntax highlighting for C and C++ (require 'doxymacs) (add-hook 'font-lock-mode-hook '(lambda () @@ -474,3 +475,7 @@ ;; windmove (only if available) (when (fboundp 'windmove-default-keybindings) (windmove-default-keybindings)) + +;; lisp +; eassist +(define-key lisp-mode-shared-map (kbd "M-m") 'eassist-list-methods) -- cgit v1.2.3