14

If your workflow is: Press and release F8 Press and release s, expect it to trigger the binding for s-s Whatever key you press afterwards does not have the s modifier unless you press F8 again then this feature exists in Emacs itself. It is bound to C-x @ s by default (clearly only intended for very occasional use). The command is event-apply-super-...


4

This is a Dead Keys problem, and it's mentioned in the Emacs wiki. All the workarounds explained there solve the issue.


3

Emacs recognizes 5 modifier keys (arguably 6 depending on how you feel about Shift): <Control> (C-), <Meta> (M-), <Super> (s-), <Hyper> (H-), and <Alt> (A-). This capital A means that this key-sequence uses the uncommon <Alt> modifier. Since your Alt key, if you even have one, is most likely used for the <Meta> ...


3

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 description of 'spanish-prefix' in lisp/leim/quail/latin-pre.el to see what other characters that method supports, and to see what other input methods are ...


3

The following elisp may help you out. Just add it to your config. (setq x-meta-keysym 'super)


3

I have run into this issue before - also trying to use Emacs on OS X with a German keyboard for (C/C++) programming. My solution to this issue was to use the Command key as Meta and pass Option through to the OS to be able to pick up the special characters. I use the following commands: (setq mac-command-modifier 'meta mac-option-modifier 'none ...


3

It will be necessary to decide ahead of time what windows/buffers will be A, B and C. The alist argument for the left window-width can be adjusted to taste -- it is presently hard-coded to 70. This example uses an internal function window--display-buffer, which requires some general understanding of certain functions inside window.el. The selected-window ...


3

Sounds like either something has bound those keys to some other commands, or else emacs is actually seeing something other the M-< and M-> when you press the keys on your keyboard. To find out which, try C-h k (ie, `describe-key'), then press the combination you think is M-<. On an emacs that's working normally, you'd see: M-< runs the command ...


2

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. For those keymaps that might be said to "have a name", there are two different meanings: Symbols whose symbol-value is a keymap (i.e., keymap variables). For ...


2

To change the meta key you can look at the variables ns-command-modifier, ns-option-modifier, ns-control-modifier, ns-right-command-modifier, ns-right-option-modifier, ns-right-control-modifier. On some versions of Emacs these will be mac- instead of ns-. I have mine set up so that the left alt key is emacs meta and the right alt key generates the mac ...


2

I feel your pain. Coming up with a decent hyper/super key binding which will work across all my keyboards is an ongoing search, especially given the widely varying laptop keyboard layouts. I dislike using the Windows key because it is actually useful when I am in Windows, and Windows steals an ever-increasing set of Win- keypresses at a low level which ...


2

Created my own layout, german-t1, simply by adding to ~/.emacs: ;; T1 German keyboard layout without AltGR and without <> (see ;; <https://emacs.stackexchange.com/a/47487/5327>): (quail-define-package "german-t1" "German" "DE1" t "German (Deutsch) input method simulating the T1 layout" nil t t t t nil nil nil nil nil t) ;; ^° 1! 2" 3§ 4$ ...


2

After making sure the right alt key is setup in the Terminal app as @junnu suggested, you can do the following to free up the right option key for the special characters you need: (setq mac-right-option-modifier nil) EDIT: Was a bit too quick, as I now read that you want to change the behaviour of the left option key... Anyway, here is a suggestion: take ...


2

I have the following in my init.el to use the italian layout with Mac OS ;; Command key is Meta (setq ns-command-modifier 'meta) ;; Option (alt) key used for special characters (e.g. []@#{}...) (setq ns-alternate-modifier nil) If you want to use the left Alt key as Meta and the right one to insert special characters you can set the following ;; AltGr used ...


1

Probably depends on your keyboard. I have a typical US PC keyboard. I don't know whether I have a <menu> key (for C-<menu>). But the <next> key is the key labeled Page Down. To see how Emacs calls any given keyboard key, use C-h k. For example, if I use C-h k and hit the key labeled Page Down, Emacs describes what it calls key <next>....


1

As I learned that Emacs enters native special symbols if Option isn't mapped to Meta, I went ahead and made a wrapper for quoted-insert that does the unmapping: (defun my/quoted-insert-wrapper (arg) "For quoted-insert, unmap Option from Meta so special symbols can be entered with the native Mac layout" (interactive "*p") (let ((mac-option-modifier '...


1

I found a workaround, inspired by the comment by Håkon Hægland in Leave evil insert mode with control key First make a keycode for VoidSymbol with xmodmap (xcape can only work on keysyms that have assigned keycodes), then let xcape map Control_L to that instead of Escape: xmodmap -e 'keycode 255 = VoidSymbol' xcape -t 175 -e 'Control_L=VoidSymbol' Then ...


1

http://osxdaily.com/2013/02/01/use-option-as-meta-key-in-mac-os-x-terminal/ Open Terminal and pull down the primary Terminal menu to choose “Preferences” Under the “Settings” section, find your default Terminal and click the “Keyboard” subsetting tab Check the little box for “Use option as meta key” at the bottom of the window


1

You can use C-h l (command view-lossage) to see the last few key sequences (including mouse actions) that you used, plus their associated commands. C-h k C-h l tells you: view-lossage is an interactive compiled Lisp function in help.el. It is bound to C-h l, f1 l, help l, menu-bar help-menu whereami view-lossage. (view-lossage) Display ...


1

You can use M-3 instead of # as part of a key definition. Use something like this in your .emacs: ;; fix agenda command with # for UK keyboard (define-key org-mode-map (kbd "C-c a M-3") 'org-agenda-list-stuck-projects)


1

I am not aware of any hook before/after new key-bindings but you can add advices to define-key. define-key is the low-level function called by other functions like global-set-key, local-set-key, or substitute-key-definition-key. In your case a :filter-args advice seems to be the most appropriate one. An example code that swaps x and z in newly defined key-...


1

There is a solution for my problem, that possible without any external dependencies!! According to https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Keyboard.html native Emacs can: w32-apps-modifier Variable: Modifier to use for the "Apps" key. w32-lwindow-modifier Variable: Modifier to use for the left "Windows" key. w32-rwindow-...


1

Here's a function that will extract all of the keymaps from the global obarray: (defun get-all-the-keymaps () "Return list of all the keymaps in the global obarray." (let (maps) (mapatoms (lambda (x) (when (keymapp x) (push x maps))) obarray) maps)) Here's another version that uses the heuristic ...


1

Placing the following snippet in user-init-file (~/.emacs.d/init.el in my case) worked for me. I also set ctrl-insert and shift-insert to copy/paste. (when (eq system-type 'darwin) ;; when using Windows keyboard on Mac, the insert key is mapped to <help> ;; copy ctrl-insert, paste shift-insert on windows keyboard (global-set-key [C-help] #'...


1

As far as I understand your question the key-translation-map seems like a good soultion for your problem. For example if you would like to have C-q acting like C-a as in your example, you would define the following: (define-key key-translation-map (kbd "C-q") (kbd "C-a"))


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