all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Abbrev in message-mode
@ 2013-05-15 22:41 Emanuel Berg
  2013-05-16 12:56 ` Suvayu Ali
       [not found] ` <mailman.25908.1368709005.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Emanuel Berg @ 2013-05-15 22:41 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-17 19:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-15 22:41 Abbrev in message-mode Emanuel Berg
2013-05-16 12:56 ` 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

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.