]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/shen-mode/shen-mode.el
2011-10-06 Eric Schulte <schulte.eric@gmail.com>
[gnu-emacs-elpa] / packages / shen-mode / shen-mode.el
index 35998515c72eccff7713403773cb918712b74f1c..957a550c8a397c406cff088fe1f48c6365e72762 100644 (file)
@@ -28,6 +28,7 @@
 
 ;;; Code:
 (require 'lisp-mode)
+(require 'cc-mode)
 (require 'shen-functions)
 (require 'imenu)
 
   :group 'shen)
 
 (defvar shen-mode-map
-  ((lambda (map) (set-keymap-parent map lisp-mode-shared-map) map)
-   (make-sparse-keymap))
+  (let ((map (make-sparse-keymap)))
+    (set-keymap-parent map lisp-mode-shared-map)
+    (substitute-key-definition 'indent-new-comment-line
+                               'c-indent-new-comment-line
+                               map global-map)
+    (substitute-key-definition 'fill-paragraph 'c-fill-paragraph
+                               map global-map)
+    map)
   "Currently just inherits from `lisp-mode-shared-map'.")
 
 \f