Skip to main content
Share Your Experience: Take the 2024 Developer Survey
15 votes

emacs on terminal does not recognise option as alt-key on mac

I solve the problem with answer of ohruunuruus. Maybe post a snapshot will be more easy to understand.
Jason Zhou's user avatar
13 votes
Accepted

Translate ae to ä on non-German keyboard

You should be able to press C-\ (toggle-input-method) and give it german-postfix as an argument if asked (or with prefix) and then be able to type as you described. The minibuffer will show you hints ...
p_wiersig's user avatar
  • 1,081
9 votes

Translate ae to ä on non-German keyboard

Without switching input methods there is direct access to all the german extra characters via C-x 8 ". In particular C-x 8 " a gives ä C-x 8 " A gives Ä etc. and C-x 8 " s gives ß Similarly C-x 8 ' ...
Andrew Swann's user avatar
  • 3,556
6 votes
Accepted

What is the simplest way to type ん in Japanese input mode?

Run M-x describe-input-method and it will show you the help for the current input method. This should have everything you need. For example, the help for the japanese-hiragana input method includes ...
db48x's user avatar
  • 18.3k
5 votes

Quickly inserting a single Greek letter

There are several ways. A key difference is how close H-g a is to typing an actual character α would be if you had that key on your keyboard. For example, you can make H-g a a macro that inserts the ...
Gilles 'SO- stop being evil''s user avatar
4 votes
Accepted

How to disable input method

M-x find-function toggle-input-method to read its source code, (defun toggle-off-input-method () (interactive) (if current-input-method (deactivate-input-method)))
chen bin's user avatar
  • 4,877
4 votes
Accepted

TeX input method is fine — except for underscore

Here's what I use (defvar sm-quail-activate-hook-done nil) (defun sm-quail-activate-hook () ;; (define-key (quail-translation-keymap) "_" 'self-insert-command) (unless (member (quail-name) sm-...
Stefan's user avatar
  • 26.5k
4 votes
Accepted

Abbreviation expansion without spaces

I asked the same question recently on emacs-devel and Kenichi Handa told me I could do: (defvar my-TeX-input-method-tweaked nil) (defun my-quail-activate-hook () (when (and (not (member (quail-name)...
Stefan's user avatar
  • 26.5k
4 votes
Accepted

Cursor colour based on input method

That's exactly what you get with library cursor-chg.el. Just turn on minor mode change-cursor-mode, and leave option curchg-change-cursor-on-input-method-flag with its default value of t. The cursor ...
Drew's user avatar
  • 77.9k
4 votes
Accepted

How to add a new input method for Syriac script in Emacs?

It should be sufficient to put the following in a .el file and load it upon startup: (quail-define-package "Syriac-trans" "Ar-trans" "S>" t "Input method for ...
Joost Kremers's user avatar
4 votes
Accepted

How to write in Mongolian language? (couldn't find it in set-input-method)

Update: this has been added to Emacs-29.1 here: Following this answer to similar question, I made following lines, and added to init.el. (quail-define-package "Mongolian-trans" "Mg-...
Garid's user avatar
  • 666
3 votes
Accepted

Making Keys Pass Completely Through Emacs

nil in input-decode-map (or any of the other translation maps) means “don't translate this key”, not “translate this key to an empty sequence”. Use an empty vector instead. (define-key input-decode-...
Gilles 'SO- stop being evil''s user avatar
3 votes

Translate ae to ä on non-German keyboard

You could have a look at key-seq or key-chord. Both lets you bind keys pressed together to a command, so if you press "ae" at the same time, you can bind it to "ä".
Erik Sjöstrand's user avatar
3 votes
Accepted

Using quail input-method to insert a string

Using quail-define-rules is overkill (note the rules, plural, in the function name) — an alternative is quail-defrule (one rule...) Directly from my scratch buffer (quail-defrule "á" ["something"]) [...
gboffi's user avatar
  • 614
3 votes

Problem "<dead-acute> is undefined" appearing when typing Greek stress ( ' )

Tryto launch emacs with : env XMODIFIERS= emacs This runs Emacs without the XMODIFIERS environment variable set, which disables input methods for just that program.
jmary's user avatar
  • 141
3 votes
Accepted

I want to type special Spanish characters in Emacs on a MacBook Pro keyboard ... but I have no clue where to start

Short answer: C-u C\ spanish-prefix RET. The characters you mentioned can then be typed as ~? => ¿ ~! => ¡ Long answer: read the emacs documentation starting at Language Environments, plus the ...
rpluim's user avatar
  • 5,325
3 votes

How to type superscript Roman numeral in Emacs, e.g., by using TeX input method?

Apparently, you are asking for a way to insert a superscript Roman numerals as raw text. Let's first find out whether such characters exist. Note that not all characters have a superscript or ...
rdrg109's user avatar
  • 428
2 votes
Accepted

How to alias a function with argument by defalias

defalias creates named aliases for functions, so you must start with a function before you can create an alias for it; and you are starting with a call to a function. So you could write a function ...
phils's user avatar
  • 51.6k
2 votes
Accepted

Names of all the keymaps for multilanguage remapping purposes

The question is flawed: A keymap does not necessarily have a name. A keymap can be a list - see the Elisp manual, node Format of Keymaps - and there need not be any name associated with the list. ...
Drew's user avatar
  • 77.9k
2 votes

TeX input method is fine — except for underscore

As you say for yourself, typing n_<space><backspace>intervals gives what you want with two extra key presses. Proposed solution Type n_<C-g>intervals to get underscores when you ...
Teodor's user avatar
  • 153
2 votes

Quickly inserting a single Greek letter

To do this for all Greek letters, download library ucs-cmds.el, then put this in your init file: (require 'ucs-cmds) (ucsc-make-commands "^greek [a-z]+ letter"))) (global-set-key (kbd "H-g a") 'greek-...
Drew's user avatar
  • 77.9k
2 votes

Making Keys Pass Completely Through Emacs

Emacs cannot be told to function as a sieve. If Emacs can see the key press, then Autohotkey is not remapping the keys at the system level. The original poster should consider submitting a feature ...
lawlist's user avatar
  • 19.2k
2 votes
Accepted

Enabling Devanagari ITRANS mode automatically

You can add the following to the end of the file: Local Variables: eval: (set-input-method 'devanagari-itrans) End: (Pretty self-explanatory: (set-input-method 'devanagari-itrans) will be evaluated ...
aplaice's user avatar
  • 2,196
2 votes
Accepted

Quail Rules UTF8 behaviour

Unfortunately using quail to convert a character from beyond the Basic Latin and Latin-1 Supplement blocks (i.e. anything with a codepoint above 255) is not possible. Firstly, the quail-translation-...
Adam's user avatar
  • 86
2 votes
Accepted

How to make minibuffer always use the input method of the main buffer?

Most commands which read from the minibuffer, such as completing-read, take an optional inherit-input-method argument which does exactly what you want. Nevertheless, in my experience this argument is ...
Basil's user avatar
  • 12.5k
2 votes
Accepted

Use Roman numbers while typing Devanagari

Investigation First, we need to find out where the devanagari-itrans method is defined. I used the brute-force method of grepping the Emacs source code. (C-h I devanagari-itrans RET will describe the ...
aplaice's user avatar
  • 2,196
2 votes

I want to type special Spanish characters in Emacs on a MacBook Pro keyboard ... but I have no clue where to start

I just found out this is how you do it: (setq ns-alternate-modifier nil) I was instead using the insert-chart bound to C-x 8 which is very painful edit: thank you all for the interest xD I'm native ...
Daniel Baez's user avatar
2 votes

Commenting out/disabling file local variable for input method in AUCTeX

I don't understand why you want to comment out that line (especially since it won't have any effect until you re-open the file or do something like M-x normal-mode): to toggle the devanagari-itrans ...
Stefan's user avatar
  • 26.5k
2 votes

compose key stopped working

I experienced the same problem, this is what helped me make it work (although I could not find out why): Generate zh_TW.UTF-8 locale (uncomment in /etc/locale.gen and run locale-gen) Run emacs with ...
G. Eyaeb's user avatar
2 votes
Accepted

How to disable the / character prefix in Cyrillic input mode?

I assume you mean the cyrillic-translit input method. The supported way is to identify each binding with a slash as prefix by looking at quail/cyrillic.el and unbind it individually: (quail-defrule &...
wasamasa's user avatar
  • 22.2k

Only top scored, non community-wiki answers of a minimum length are eligible