comparison lisp/textmodes/bib-mode.el @ 49599:5ade352e8d1c

Trailing whitespace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 13:30:45 +0000
parents 8fab3d5b7fcf
children 96a4d917b189 d7ddb3e565de
comparison
equal deleted inserted replaced
49598:0d8b17d428b5 49599:5ade352e8d1c
23 ;; Boston, MA 02111-1307, USA. 23 ;; Boston, MA 02111-1307, USA.
24 24
25 ;;; Commentary: 25 ;;; Commentary:
26 26
27 ;; GNU Emacs code to help maintain databases compatible with (troff) 27 ;; GNU Emacs code to help maintain databases compatible with (troff)
28 ;; refer and lookbib. The file bib-file should be set to your 28 ;; refer and lookbib. The file bib-file should be set to your
29 ;; bibliography file. Keys are automagically inserted as you type, 29 ;; bibliography file. Keys are automagically inserted as you type,
30 ;; and appropriate keys are presented for various kinds of entries. 30 ;; and appropriate keys are presented for various kinds of entries.
31 31
32 ;;; Code: 32 ;;; Code:
33 33
51 (define-key bib-mode-map "\C-c\C-u" 'unread-bib) 51 (define-key bib-mode-map "\C-c\C-u" 'unread-bib)
52 (define-key bib-mode-map "\C-c\C-@" 'mark-bib) 52 (define-key bib-mode-map "\C-c\C-@" 'mark-bib)
53 (define-key bib-mode-map "\e`" 'abbrev-mode) 53 (define-key bib-mode-map "\e`" 'abbrev-mode)
54 54
55 (defun addbib () 55 (defun addbib ()
56 "Set up editor to add to troff bibliography file specified 56 "Set up editor to add to troff bibliography file specified
57 by global variable `bib-file'. See description of `bib-mode'." 57 by global variable `bib-file'. See description of `bib-mode'."
58 (interactive) 58 (interactive)
59 (find-file bib-file) 59 (find-file bib-file)
60 (goto-char (point-max)) 60 (goto-char (point-max))
61 (bib-mode) 61 (bib-mode)
62 ) 62 )
63 63
64 (define-derived-mode bib-mode text-mode "Bib" 64 (define-derived-mode bib-mode text-mode "Bib"
65 "Mode for editing `lookbib' style bibliographies. 65 "Mode for editing `lookbib' style bibliographies.
66 Hit RETURN to get next % field key. 66 Hit RETURN to get next % field key.
67 If you want to ignore this field, just hit RETURN again. 67 If you want to ignore this field, just hit RETURN again.
68 Use `text-mode' to turn this feature off. 68 Use `text-mode' to turn this feature off.
69 69
70 journal papers: A* T D J V N P K W X 70 journal papers: A* T D J V N P K W X
71 articles in books & proceedings: A* T D B E* I C P K W X 71 articles in books & proceedings: A* T D B E* I C P K W X
72 tech reports: A* T D R I C K W X 72 tech reports: A* T D R I C K W X
73 books: A* T D I C K W X 73 books: A* T D I C K W X
74 74
75 Fields: 75 Fields:
76 76
77 A uthor T itle D ate J ournal 77 A uthor T itle D ate J ournal
78 V olume N umber P age K eywords 78 V olume N umber P age K eywords
79 B in book or proceedings E ditor C ity & state 79 B in book or proceedings E ditor C ity & state
80 I nstitution, school, or publisher 80 I nstitution, school, or publisher
81 R eport number or 'phd thesis' or 'masters thesis' or 'draft' or 81 R eport number or 'phd thesis' or 'masters thesis' or 'draft' or
82 'unnumbered' or 'unpublished' 82 'unnumbered' or 'unpublished'
83 W here can be found locally (login name, or ailib, etc.) 83 W here can be found locally (login name, or ailib, etc.)
84 X comments (not used in indexing) 84 X comments (not used in indexing)
85 85
86 \\[unread-bib] appends current entry to a different file (for example, 86 \\[unread-bib] appends current entry to a different file (for example,