Mercurial > emacs
diff lisp/progmodes/octave-mod.el @ 109753:8646a04a2d97
* lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim.
(octave-mode): Set comment-add.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 12 Aug 2010 12:46:44 +0200 |
parents | 99ad939c8d05 |
children | 47ffebe76e42 |
line wrap: on
line diff
--- a/lisp/progmodes/octave-mod.el Thu Aug 12 11:02:02 2010 +0200 +++ b/lisp/progmodes/octave-mod.el Thu Aug 12 12:46:44 2010 +0200 @@ -194,7 +194,6 @@ (define-key map ";" 'octave-electric-semi) (define-key map " " 'octave-electric-space) (define-key map "\n" 'octave-reindent-then-newline-and-indent) - (define-key map "\e;" 'octave-indent-for-comment) (define-key map "\e\n" 'octave-indent-new-comment-line) (define-key map "\e\t" 'octave-complete-symbol) (define-key map "\M-\C-a" 'octave-beginning-of-defun) @@ -507,6 +506,7 @@ (setq comment-start-skip "\\s<+\\s-*") (make-local-variable 'comment-indent-function) (setq comment-indent-function 'octave-comment-indent) + (set (make-local-variable 'comment-add) 1) (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments t)