sh-script.el pairs

Stephen J. Turnbull stephen at xemacs.org
Sat Mar 8 03:10:50 EST 2008


As a matter of style and workflow, there's no reason not to submit
this directly to xemacs-patches.  If you want to let people know that
something potentially controversial is being reviewed, cross-post to
xemacs-beta with Reply-To set to xemacs-patches.

I don't use sh-mode much, so don't my following comments too seriously.

 > +;; Some suggestions for keys
 > +; (define-key sh-mode-map "\M-a" 'sh-beg-of-command)
 > +; (define-key sh-mode-map "\M-e" 'sh-end-of-command)
 > +; (define-key sh-mode-map "\C-\M-a" 'sh-beginning-of-form)
 > +; (define-key sh-mode-map "\C-\M-e" 'sh-end-of-form)
 > +; (define-key sh-mode-map "\M-p" 'sh-goto-opening)
 > +; (define-key sh-mode-map "\M-n" 'sh-goto-closing)
 > +; (define-key sh-mode-map "%" 'sh-match-paren)

Do these key sequences do anything useful in sh-mode currently?  If
not, why not try these bindings?  Specifically, make a minor mode for
these bindings, make a defcustom sh-mode-invokes-new-bindings
controlling whether sh-mode turns them on or not by default, and
default it to t.

 > +(defun sh-transpose-funktion ()

Please spell function names in English. :-)



More information about the XEmacs-Beta mailing list