all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* c-mode : can't expand '#d' to '#define'
@ 2002-09-24 17:35 Jeff Rancier
  2002-09-24 19:52 ` Kai Großjohann
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Rancier @ 2002-09-24 17:35 UTC (permalink / raw)


Hello All:

In c-mode, I have the following:

(defconst c-expand-list  '(
    ("#d"  "#define ")
    ("d"   "do\n{\n\n} while();" (6 15))
    ("de"  "default:")
   )  "Expansions for C mode" )

(defun c-mode-expand-add-hooks ()
  (expand-add-abbrevs c-mode-abbrev-table c-expand-list))

(add-hook 'c-mode-hook 'c-mode-expand-add-hooks)

When I type #d followed by a space, I get the do expansion.   Can anyone
explain this?

--

Thanks,
Jeff

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

end of thread, other threads:[~2002-09-30 23:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24 17:35 c-mode : can't expand '#d' to '#define' Jeff Rancier
2002-09-24 19:52 ` Kai Großjohann
2002-09-30  1:24   ` Luis Fernandes
2002-09-30 12:54     ` Clemens Fischer
2002-09-30 14:29     ` Kai Großjohann
2002-09-30 23:55       ` Luis Fernandes

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.