all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to get Meta+y to be Meta+Tab
Date: Sat, 25 Oct 2008 14:40:58 -0700 (PDT)	[thread overview]
Message-ID: <f4ef5da9-54e6-4742-8ebe-f630f74b284a@r15g2000prh.googlegroups.com> (raw)
In-Reply-To: KuGdnfZToaLEyJ_UnZ2dnUVZ_vSdnZ2d@sysmatrix.net

Xah wrote:
«suppose i want to make Meta+y to function as pressing Meta+Tab.
intuitively, i do this: (keyboard-translate ?\M-y ?\M-9) but that does
not work.»

B T Raven wrote:
«Maybe (global-unset-key KEY)and then (global-set-key)? Some minor
modes might override the new setting but probably most won't.»

am pretty sure that global-set-key cannot be used for the
functionality of keyboard-translate.

«Btw, what is that shooting star symbol? What unicode code point?»

      character: ☄ (299364, #o1110544, #x49164, U+2604)
           Name: COMET

you might want to install the unicode data file so these info and more
is available to what-cursor-position (Ctrl+u Ctrl+=). (I append the
char to end of my sig to force web-based forums to use unicode for
encoding.)

See:
http://xahlee.org/emacs/emacs_n_unicode.html

quote:

Q: I have this character α on the screen. How to find out its
unicode's hex value or name?

You can find out a character's decimal, octal, or hex values by
placing your cursor on the character, and type “Alt+x what-cursor-
position” (Ctrl+x =). You can get more info if you place your cursor
on the character, then press “Ctrl+u Ctrl+x =”.

However, if you want the complete unicode info of a character, you
need to download a unicode data file and let emacs know where it is.
The unicode data file can be downloaded at: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
After you downloaded it, place the following code in your “~/.emacs”
to let emacs know where it is:

; set unicode data file location. (used by what-cursor-position)
(let ((x "~/Documents/emacs/UnicodeData.txt"))
  (when (file-exists-p x)
    (setq describe-char-unicodedata-file x)))

Then restart emacs. Once you've done this, then place your cursor on a
unicode char, and do “Ctrl+u Ctrl+x =”, then emacs will give you all
the unicode info about that char, including the code point in decimal,
octal, hex notations, as well the unicode character name, category,
the font emacs is using, and others.

For example, here's the output on the character “α”:

      character: α (332721, #o1211661, #x513b1, U+03B1)
        charset: mule-unicode-0100-24ff
                 (Unicode characters of the range U+0100..U+24FF.)
     code point: #x27 #x31
         syntax: w 	which means: word
       category: g:Greek
    buffer code: #x9C #xF4 #xA7 #xB1
      file code: #xCE #xB1 (encoded by coding system mule-utf-8-unix)
        display: by this font (glyph code)
     -apple-symbol-medium-r-normal--14-140-72-72-m-140-mac-symbol
(#x61)
   Unicode data:
           Name: GREEK SMALL LETTER ALPHA
       Category: lowercase letter
Combining class: Spacing
  Bidi category: Left-to-Right
      Uppercase: Α
      Titlecase: Α

There are text properties here:
  fontified            t

  Xah
∑ http://xahlee.org/

  reply	other threads:[~2008-10-25 21:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 21:47 how to get Meta+y to be Meta+Tab Xah
2008-10-24 23:08 ` B. T. Raven
2008-10-25 21:40   ` Xah [this message]
2008-10-26 14:11     ` Nikolaj Schumacher
     [not found]     ` <mailman.2123.1225030309.25473.help-gnu-emacs@gnu.org>
2008-10-28  6:13       ` Xah
2008-10-25 23:01 ` Andreas Politz

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

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

  git send-email \
    --in-reply-to=f4ef5da9-54e6-4742-8ebe-f630f74b284a@r15g2000prh.googlegroups.com \
    --to=xahlee@gmail.com \
    --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.
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.