comparison lisp/skeleton.el @ 94138:b6c3fde83add

Set coding-tag.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 17 Apr 2008 19:54:57 +0000
parents 1e3a407766b9
children ee5932bf781d
comparison
equal deleted inserted replaced
94137:b745a29952ba 94138:b6c3fde83add
1 ;;; skeleton.el --- Lisp language extension for writing statement skeletons 1 ;;; skeleton.el --- Lisp language extension for writing statement skeletons -*- coding: utf-8 -*-
2 2
3 ;; Copyright (C) 1993, 1994, 1995, 1996, 2001, 2002, 2003, 3 ;; Copyright (C) 1993, 1994, 1995, 1996, 2001, 2002, 2003,
4 ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 4 ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 5
6 ;; Author: Daniel Pfeiffer <occitan@esperanto.org> 6 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>
480 480
481 (defvar skeleton-pair-default-alist '((?( _ ?)) (?\)) 481 (defvar skeleton-pair-default-alist '((?( _ ?)) (?\))
482 (?[ _ ?]) (?\]) 482 (?[ _ ?]) (?\])
483 (?{ _ ?}) (?\}) 483 (?{ _ ?}) (?\})
484 (?< _ ?>) (?\>) 484 (?< _ ?>) (?\>)
485 (?« _ ?») (?\») 485 (?« _ ?») (?\»)
486 (?` _ ?'))) 486 (?` _ ?')))
487 487
488 ;;;###autoload 488 ;;;###autoload
489 (defun skeleton-pair-insert-maybe (arg) 489 (defun skeleton-pair-insert-maybe (arg)
490 "Insert the character you type ARG times. 490 "Insert the character you type ARG times.
518 (self-insert-command (prefix-numeric-value arg)) 518 (self-insert-command (prefix-numeric-value arg))
519 (skeleton-insert (cons nil skeleton) (if mark -1)))))) 519 (skeleton-insert (cons nil skeleton) (if mark -1))))))
520 520
521 521
522 ;; A more serious example can be found in sh-script.el 522 ;; A more serious example can be found in sh-script.el
523 ;;; (defun mirror-mode () 523 ;; (defun mirror-mode ()
524 ;; "This major mode is an amusing little example of paired insertion. 524 ;; "This major mode is an amusing little example of paired insertion.
525 ;;All printable characters do a paired self insert, while the other commands 525 ;;All printable characters do a paired self insert, while the other commands
526 ;;work normally." 526 ;;work normally."
527 ;; (interactive) 527 ;; (interactive)
528 ;; (kill-all-local-variables) 528 ;; (kill-all-local-variables)