all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Abbrev in message-mode
Date: Thu, 16 May 2013 00:41:26 +0200	[thread overview]
Message-ID: <87ip2j6f3d.fsf@VLAN-3434.student.uu.se> (raw)

Works:

(define-abbrev-table 'emacs-lisp-mode-abbrev-table
  '(("xx" "XX")) )

But, with `compose-mail', I get to "message-mode". Here, the
"mail-abbrevs" table works. It affects the "To:" header, and is setup
in ~/.mailrc:

alias jtr "Jack The Ripper <jack@ripper.com>"

But, how do I get abbrevs to work in the the actual *message*?

With `list-abbrev', I found these, but neither work. (They might even
relate to the *Messages* buffer, or to some other messages, I don't
know.)

(define-abbrev-table 'message-abbrevs
  '(("oh" "oh1")) )
(define-abbrev-table 'message-abbrev-table
  '(("oh" "oh2")) )
(define-abbrev-table 'message-mode-abbrev-table
  '(("oh" "oh3")) )

Note: Setting the "global-abbrev-table" works: it affects the "To:"
header as well as the message body.

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


             reply	other threads:[~2013-05-15 22:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15 22:41 Emanuel Berg [this message]
2013-05-16 12:56 ` Abbrev in message-mode Suvayu Ali
     [not found] ` <mailman.25908.1368709005.855.help-gnu-emacs@gnu.org>
2013-05-16 13:46   ` Emanuel Berg
2013-05-16 17:29     ` Suvayu Ali
2013-05-16 20:06       ` Stefan Monnier
     [not found]     ` <mailman.25933.1368725404.855.help-gnu-emacs@gnu.org>
2013-05-16 22:26       ` Emanuel Berg
2013-05-17 11:12         ` Suvayu Ali
     [not found]         ` <mailman.25986.1368789137.855.help-gnu-emacs@gnu.org>
2013-05-17 19:31           ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip2j6f3d.fsf@VLAN-3434.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.