aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/progmodes/octave.el7
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 62f094dc6e4..9fdb5fdc6f8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * progmodes/octave.el (octave-indent-comment): Fix the indentation 3 * progmodes/octave.el (octave-indent-comment): Fix the indentation
4 of ### or %%%. 4 of ### or %%%.
5 (octave-mode-map): Bind octave-indent-defun to C-c C-q instead of
6 C-M-q.
5 7
62013-05-12 Leo Liu <sdl.web@gmail.com> 82013-05-12 Leo Liu <sdl.web@gmail.com>
7 9
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index f00347d319a..fc1e7bb757e 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -96,9 +96,10 @@ parenthetical grouping.")
96 96
97(defvar octave-mode-map 97(defvar octave-mode-map
98 (let ((map (make-sparse-keymap))) 98 (let ((map (make-sparse-keymap)))
99 (define-key map "\M-." 'octave-find-definition) 99 (define-key map "\M-." 'octave-find-definition)
100 (define-key map "\e\n" 'octave-indent-new-comment-line) 100 (define-key map "\M-\C-j" 'octave-indent-new-comment-line)
101 (define-key map "\M-\C-q" 'octave-indent-defun) 101 ;; C-c C-q is also used by cc modes for similar command
102 (define-key map "\C-c\C-q" 'octave-indent-defun)
102 (define-key map "\C-c\C-p" 'octave-previous-code-line) 103 (define-key map "\C-c\C-p" 'octave-previous-code-line)
103 (define-key map "\C-c\C-n" 'octave-next-code-line) 104 (define-key map "\C-c\C-n" 'octave-next-code-line)
104 (define-key map "\C-c\C-a" 'octave-beginning-of-line) 105 (define-key map "\C-c\C-a" 'octave-beginning-of-line)