Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!oliveb!mipos3!omepd!merlyn From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.emacs Subject: Re: Using abbrev mode while editing {La,}TeX? Message-ID: <4749@omepd.UUCP> Date: 2 Aug 89 21:33:45 GMT References: <8907311559.AA00226@toucan.LCS.MIT.EDU> <8907311924.AA26177@NMSU.Edu> Sender: news@omepd.UUCP Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Hillsboro, Oregon, USA Lines: 32 In-reply-to: jthomas@nmsu.EDU In article <8907311924.AA26177@NMSU.Edu>, jthomas@nmsu writes: | Presumably Neil understood that the easiest way is to type "z" instead of | "Z", since the abbreviation replacement is taking the case of the entered | text. | | So, a better solution is to edit the abbrev entry to look something like: | | "Z" 5 "{" (lambda nil (insert "\\bf Z}")) | | . Yeah, that's a hack, but .... ::-{)} | | Jim Thomas or, 26 lines like: "a" 0 "a" (lambda () (forward-char -1) (insert "{\\bf ") (forward-char 1) (insert "}")) replacing "a" with "b", etc. Of course, the *real* way would be to stick that lambda expression into a function. And then, instead, why even use abbrev's? Why not just code them, and do a global sub later? I mean, look for all the @A, and replace with {\bf A}... ? Maybe that wouldn't handle some other concern? Curious, -- /== Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ====\ | on contract to Intel, Hillsboro, Oregon, USA | | merlyn@iwarp.intel.com ...!uunet!iwarp.intel.com!merlyn | \== Cute Quote: "Welcome to Oregon... Home of the California Raisins!" ==/