auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] abbrev-mode and bibtex-mode


From: Tyler Smith
Subject: [AUCTeX] abbrev-mode and bibtex-mode
Date: Tue, 29 Jan 2008 14:17:37 +0000 (UTC)
User-agent: slrn/0.9.8.1pl1 (Debian)

Hi,

I'm trying to use some abbrevs in BibTex mode. When visiting my
.bib file, I use the C-x a l command to define a mode-specific
abbreviation. However, when I save the abbreviations, the abbrevs
defined from within BibTex mode are listed as abbrevs for
fundamental-mode. How do I define abbrevs so that they are active only
when I'm visiting a .bib file?

The .abbrevs_def file generated by my first experiment is copied
below. I tried manually changing the 'fundamental-mode-abbrev-table to
'bibtex-mode-abbrev-table, and also 'BibTex-mode-abbrev-table, but
neither one worked. Only the 'fundamental-mode-abbrev-table works, but
not just for .bib files, any file visited in fundamental mode.

Any pointers appreciated.

Thanks,

Tyler


;;-*-coding: emacs-mule;-*-
(define-abbrev-table 'apropos-mode-abbrev-table '(
    ))

(define-abbrev-table 'comint-mode-abbrev-table '(
    ))

(define-abbrev-table 'fundamental-mode-abbrev-table '(
    ("em" "ecol_mono" nil 0)
    ("ijps" "int_j_plant_sci" nil 1)
    ("mr" "microbiol_rev" nil 0)
    ))

(define-abbrev-table 'global-abbrev-table '(
    ))

(define-abbrev-table 'lisp-mode-abbrev-table '(
    ))

(define-abbrev-table 'org-mode-abbrev-table '(
    ))

(define-abbrev-table 'outline-mode-abbrev-table '(
    ))

(define-abbrev-table 'shell-mode-abbrev-table '(
    ))

(define-abbrev-table 'sldb-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-compiler-notes-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-connection-list-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-fuzzy-completions-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-inspector-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-thread-control-mode-abbrev-table '(
    ))

(define-abbrev-table 'slime-xref-mode-abbrev-table '(
    ))

(define-abbrev-table 'text-mode-abbrev-table '(
    ))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]