diff options
| author | Leo Liu | 2013-05-13 09:36:42 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-05-13 09:36:42 +0800 |
| commit | f5a9432fa62b13bc353e110eade8b6f4ee553aa4 (patch) | |
| tree | b60954f4efe629089329087c20df8c3692adabc2 | |
| parent | 2aeb3a1dbaca57eb0fa38aa89f08a66563272041 (diff) | |
| download | emacs-f5a9432fa62b13bc353e110eade8b6f4ee553aa4.tar.gz emacs-f5a9432fa62b13bc353e110eade8b6f4ee553aa4.zip | |
* progmodes/octave.el (octave-mode-map): Bind octave-indent-defun to
C-c C-q instead of C-M-q.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 7 |
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 | ||
| 6 | 2013-05-12 Leo Liu <sdl.web@gmail.com> | 8 | 2013-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) |