emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/shen-mode 7bddd92 02/15: 2011-10-06 Eric Schulte <addre


From: Stefan Monnier
Subject: [elpa] externals/shen-mode 7bddd92 02/15: 2011-10-06 Eric Schulte <address@hidden>
Date: Sun, 29 Nov 2020 00:14:26 -0500 (EST)

branch: externals/shen-mode
commit 7bddd924250ec422f3bd25a1882fd00860f82696
Author: Eric Schulte <schulte.eric@gmail.com>
Commit: Eric Schulte <schulte.eric@gmail.com>

    2011-10-06  Eric Schulte <schulte.eric@gmail.com>
    
    * shen-mode.el (cc-mode): Explicitly require cc-mode as some c comment
      functions are used.
      (shen-mode-map): Improve M-j behavior in comments.
---
 shen-mode.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/shen-mode.el b/shen-mode.el
index 3599851..957a550 100644
--- a/shen-mode.el
+++ b/shen-mode.el
@@ -28,6 +28,7 @@
 
 ;;; Code:
 (require 'lisp-mode)
+(require 'cc-mode)
 (require 'shen-functions)
 (require 'imenu)
 
@@ -37,8 +38,14 @@
   :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'.")
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]