[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get Meta+y to be Meta+Tab
From: |
Xah |
Subject: |
Re: how to get Meta+y to be Meta+Tab |
Date: |
Sat, 25 Oct 2008 14:40:58 -0700 (PDT) |
User-agent: |
G2/1.0 |
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/
☄