emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r112564: * progmodes/octave.el (octav


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112564: * progmodes/octave.el (octave-mode-map): Bind octave-indent-defun to
Date: Mon, 13 May 2013 09:36:42 +0800
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 112564
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Mon 2013-05-13 09:36:42 +0800
message:
  * progmodes/octave.el (octave-mode-map): Bind octave-indent-defun to
  C-c C-q instead of C-M-q.
modified:
  lisp/ChangeLog
  lisp/progmodes/octave.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-05-13 00:07:18 +0000
+++ b/lisp/ChangeLog    2013-05-13 01:36:42 +0000
@@ -2,6 +2,8 @@
 
        * progmodes/octave.el (octave-indent-comment): Fix the indentation
        of ### or %%%.
+       (octave-mode-map): Bind octave-indent-defun to C-c C-q instead of
+       C-M-q.
 
 2013-05-12  Leo Liu  <address@hidden>
 

=== modified file 'lisp/progmodes/octave.el'
--- a/lisp/progmodes/octave.el  2013-05-13 00:07:18 +0000
+++ b/lisp/progmodes/octave.el  2013-05-13 01:36:42 +0000
@@ -96,9 +96,10 @@
 
 (defvar octave-mode-map
   (let ((map (make-sparse-keymap)))
-    (define-key map "\M-." 'octave-find-definition)
-    (define-key map "\e\n" 'octave-indent-new-comment-line)
-    (define-key map "\M-\C-q" 'octave-indent-defun)
+    (define-key map "\M-."     'octave-find-definition)
+    (define-key map "\M-\C-j"  'octave-indent-new-comment-line)
+    ;; C-c C-q is also used by cc modes for similar command
+    (define-key map "\C-c\C-q" 'octave-indent-defun)
     (define-key map "\C-c\C-p" 'octave-previous-code-line)
     (define-key map "\C-c\C-n" 'octave-next-code-line)
     (define-key map "\C-c\C-a" 'octave-beginning-of-line)


reply via email to

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