From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: .emacs poser Date: Tue, 17 Dec 2013 17:17:16 +0100 Organization: Aioe.org NNTP Server Message-ID: <87eh5bsb8a.fsf@nl106-137-194.student.uu.se> References: <87wqj4p720.fsf@nl106-137-194.student.uu.se> <87fvpsp3oy.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1387297218 8398 80.91.229.3 (17 Dec 2013 16:20:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 16:20:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 17 17:20:25 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VsxNf-0004nX-Mh for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 17:20:23 +0100 Original-Received: from localhost ([::1]:34271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsxNf-0007hA-8e for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 11:20:23 -0500 X-Received: by 10.15.51.132 with SMTP id n4mr12097737eew.3.1387297062992; Tue, 17 Dec 2013 08:17:42 -0800 (PST) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Original-Path: usenet.stanford.edu!w6no7794574wiw.0!news-out.google.com!bd4ni12179wib.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 108 Original-NNTP-Posting-Host: VVbyYd/iFZoeWNmD9i++cQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:4WN+/5MQN55QJQ8wK8xw0aGpiY8= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:202783 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95051 Archived-At: > The compose key is good. Now if I could just set my > system up so that the Windows-Menu key worked as a > compose key in both X and Linux VTs. Try this: XKBOPTIONS=compose:ralt # change ralt to preferred key in /etc/default/keyboard then sudo dpkg-reconfigure console-setup then, in /etc/console-setup/remap.inc ### compose key ## current state: `dumpkeys --compose-only' compose 'o' 'a' to U+00E5 # å compose 'o' 'A' to U+00C5 # Å compose '0' 'a' to U+00E5 # å compose '0' 'A' to U+00C5 # Å compose '"' 'a' to U+00E4 # ä compose '"' 'A' to U+00C4 # Ä compose '/' 'o' to U+00F3 # ó compose '/' 'O' to U+00D3 # Ó compose '"' 'o' to U+00F6 # ö compose '"' 'O' to U+00D6 # Ö compose '/' 'e' to U+00E9 # é compose '/' 'E' to U+00C9 # É compose '/' 'a' to U+00E1 # á compose '/' 'A' to U+00C1 # Á compose '/' 'u' to U+00FA # ú compose '/' 'U' to U+00DA # Ú compose '/' 'i' to U+00ED # í compose '/' 'I' to U+00CD # Í compose '\' 'a' to U+00E0 # à compose '\' 'A' to U+00C0 # À then loadkeys -c -s /etc/console-setup/remap.inc # same file The compose key works for me in X as well, though I don't remember how I set that up, if indeed I did. > Serious, unfortunately. Twas Corporate Policy. Any > brand or trade name must be given the proper > attribution and trademark symbol. So things like > "Microsoft Word" became "Microsoft® Word®". > Every. Freaking. Time. Arrgh. This is a prime example when you should use an abbrev. Call it msw, for example. You probably already know how to setup an abbrev, but I mention it nonetheless. Your example (MS Word) first, then some other creative uses of abbrev. (let*((write '(("msw" "Microsoft® Word®") ("Marquez" "Márquez") ("Diaz" "Díaz") ("Alvarez" "Álvarez") ("Rios" "Ríos") ("Lopez" "López") ("emacsver" "" (lambda () (interactive) (emacs-version :here) )) ("thedate" "" date) ("teln" "0702541522") ("homep" "http://user.it.uu.se/~embe8573"))) (groups '(("rsb" "rec.sport.boxing") ("geh" "gnu.emacs.help") ("geg" "gnu.emacs.gnus"))) (both (append write groups))) (define-abbrev-table 'global-abbrev-table both) ) > Gak! No! Mother Hitton's Littul Kittons, no! TEXT > processor. I loathe word processores, Word, > LibreOffice, Abiword, whatever. They give me the > screaming heebie-geebies whenever I have to use one > of them. Give me Emacs and Groff or TeX. I agree, that's why I was so surprised to (not) hear word processor and Groff and LaTeX from the same person. I never heard "text processor". But, "text processor" = editor, then? > But I think we'll have to agree to disagree, here. I > am going to investigate Drew's ucs-cmds.el library; it > looks interesting. Besides, I think we're getting a > bit off-topic here. I always agree to degree in general, only in this case I'm fairly sure my solution is better, and that this could be measured and confirmed if a bunch of scientists did an examination (which I don't suggest they do, as they should do other thing). Summary: For the odd case use: the compose key For recurrent use in words: abbrev (compare Microsoft® Word® - and realize that I didn't type that, just m s w without spaces). -- Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu underground experts united: http://user.it.uu.se/~embe8573