summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs11
1 files changed, 8 insertions, 3 deletions
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)