Paredit forward slurp "C-" "does not work for emacs on Windows 7

After switching to win7 paredit forward slurp, β€œC-)” no longer works, and β€œC-right arrow” still works, reordering sexp to another combination (like C-0) works as well.
Does anyone have the same problem?

+8
emacs paredit
source share
3 answers

Windows 7 uses Ctrl + Shift to switch languages, so Emacs never gets key strokes. You can change the binding with the following:

  • Control Panel
  • Region and language
  • Keyboards and languages
  • Change keyboard
  • Additional key options
  • Between Input Languages
  • Change Key Sequence
  • Switch Keyboard Layout
  • Not assigned.

http://www.eightforums.com/general-support/22552-cant-use-ctrl-shift-0-windows-has.html

+3
source share

This happens on Windows 7 if you have more than one input language. Ctrl-Shift-0, Ctrl-Shift-1, ... are designed to quickly switch the input language. This seems to be impossible, because Windows intercepts certain key combinations (for example, Win-E, Win-D, etc.) and does not pass it to the application. Perhaps worse, the Intel GMA driver does not allow the use of Ctrl-Alt-Up / Down in Win XP.

Just use a different shortcut in Emacs (or you can try reassigning keys with tools like Sharpkeys).

+2
source share

Paredit version I bind the forward slurp command to <C-right> and C-) . I can verify that the last key is consumed by the MS Windows 8 operating system in my case, so Emacs cannot get this key. That way you can use <C-right> instead, but then, since this key (as well as <C-left> bound to another paredit command) is usually intended to be moved (outside paredit), you might be want to use your own custom key. I am using C-* . Below is the configuration I'm using and you can take the parts you need.

 (require 'paredit) (define-key paredit-mode-map (kbd "C-*") 'paredit-forward-slurp-sexp) ;; Make the key no longer bound to paredit-forward-barf-sexp (define-key paredit-mode-map (kbd "<C-left>") nil) ;; Make the key no longer bound to paredit-forward-slurp-sexp (define-key paredit-mode-map (kbd "<C-right>") nil) (define-key paredit-mode-map (kbd "<C-backspace>") 'paredit-backward-kill-word) 
+2
source share

All Articles