unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: .emacs poser
Date: Tue, 17 Dec 2013 17:17:16 +0100	[thread overview]
Message-ID: <87eh5bsb8a.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: mailman.9460.1387258387.10748.help-gnu-emacs@gnu.org

> 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


  parent reply	other threads:[~2013-12-17 16:17 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17  0:01 .emacs poser B. T. Raven
2013-12-17  0:36 ` Emanuel Berg
2013-12-17  1:48 ` Dale Snell
2013-12-17  2:46   ` Drew Adams
     [not found] ` <mailman.9443.1387244913.10748.help-gnu-emacs@gnu.org>
2013-12-17  2:03   ` Emanuel Berg
2013-12-17  2:58     ` Dale Snell
2013-12-17  5:53       ` Jambunathan K
     [not found]     ` <mailman.9453.1387249112.10748.help-gnu-emacs@gnu.org>
2013-12-17  3:16       ` Emanuel Berg
2013-12-17  5:32         ` Dale Snell
2013-12-17  6:27         ` Tilman Ahr
2013-12-17 16:42           ` Emanuel Berg
2013-12-18  2:25             ` Tilman Ahr
2013-12-18 21:17               ` Emanuel Berg
2013-12-18  3:01             ` Yuri Khan
     [not found]             ` <mailman.9542.1387335681.10748.help-gnu-emacs@gnu.org>
2013-12-18 21:23               ` Emanuel Berg
2013-12-19  1:13                 ` Yuri Khan
     [not found]                 ` <mailman.9626.1387415627.10748.help-gnu-emacs@gnu.org>
2013-12-20  1:40                   ` Emanuel Berg
     [not found]         ` <mailman.9460.1387258387.10748.help-gnu-emacs@gnu.org>
2013-12-17 16:17           ` Emanuel Berg [this message]
2013-12-17 17:36             ` Dale Snell
     [not found]             ` <mailman.9507.1387301817.10748.help-gnu-emacs@gnu.org>
2013-12-17 17:41               ` Emanuel Berg
2013-12-17  3:06 ` Yuri Khan
2013-12-17 15:17   ` Drew Adams
2013-12-18  1:38     ` Yuri Khan
2013-12-17  7:41 ` Kevin Rodgers
2013-12-17 15:24 ` Doug Lewan
     [not found] ` <mailman.9465.1387266001.10748.help-gnu-emacs@gnu.org>
2013-12-17 15:40   ` Sebastien Vauban
2013-12-17 16:29     ` Drew Adams
2013-12-17 16:49     ` Emanuel Berg
2013-12-17 18:20     ` Eli Zaretskii
     [not found] ` <mailman.9492.1387293902.10748.help-gnu-emacs@gnu.org>
2013-12-17 17:14   ` Emanuel Berg
2013-12-17 17:16   ` Emanuel Berg
2013-12-17 19:04     ` Doug Lewan
     [not found]     ` <mailman.9512.1387307070.10748.help-gnu-emacs@gnu.org>
2013-12-17 22:42       ` Emanuel Berg
2013-12-17 23:35         ` Doug Lewan
2013-12-17 21:15   ` Joost Kremers
2013-12-17 22:44     ` Emanuel Berg
2013-12-17 23:25       ` Emanuel Berg
2013-12-18  3:22     ` Jambunathan K
     [not found]     ` <mailman.9544.1387337046.10748.help-gnu-emacs@gnu.org>
2013-12-18 21:42       ` Emanuel Berg
     [not found]         ` <mailman.9628.1387418319.10748.help-gnu-emacs@gnu.org>
2013-12-19  2:52           ` Emanuel Berg
2013-12-19  3:00             ` Emanuel Berg
2013-12-20  5:31             ` Jambunathan K
2013-12-20  5:38               ` Jambunathan K
     [not found]             ` <mailman.9724.1387517532.10748.help-gnu-emacs@gnu.org>
2013-12-20 17:52               ` Emanuel Berg
2013-12-27  6:00                 ` B. T. Raven
2013-12-27 14:12                   ` Yuri Khan
2013-12-27 16:11                     ` Drew Adams
     [not found]                     ` <mailman.10526.1388160732.10748.help-gnu-emacs@gnu.org>
2013-12-29 22:17                       ` B. T. Raven
2013-12-29 23:48                         ` Drew Adams
2013-12-20  1:52         ` Jambunathan K
2013-12-19 22:24       ` Joost Kremers
2013-12-19 23:16         ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87eh5bsb8a.fsf@nl106-137-194.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).