After migrating to win7
paredit
's forward slurp "C-)" no longer works and "C-right arrow" still works, rebinding the sexp
to a different combination (such as C-0) works as well.
Does anyone have the same issue out there?
Windows 7 uses Ctrl + Shift to switch languages, so Emacs is never getting the key strokes. You can change the binding with the following:
http://www.eightforums.com/general-support/22552-cant-use-ctrl-shift-0-windows-has.html
It happens on Windows 7, if you have more than one input language. Ctrl-Shift-0, Ctrl-Shift-1, ... are for quick switching of the input language. Seems to be unfixable, as Windows intercepts certain key combinations (e.g. Win-E, Win-D, etc.) and doesn't pass it down to the application. Could be worse, Intel GMA driver doesn't let you use Ctrl-Alt-Up/Down on Win XP.
Just use another shortcut in Emacs (or you can try to remap keys using tools like, Sharpkeys).
Paredit version I have bind the forward slurp command to <C-right>
and C-)
. I can verify that the latter key is consumed by the operating system, MS Windows 8 in my case, so Emacs can't receive that key. So you might want to use <C-right>
instead, but then since that key (and also <C-left>
which is bound to another paredit command) is normally for movement (outside of paredit), maybe you might want to use your own custom different key. I use C-*
. The following is the configuration I use, and you can take the parts you want.
(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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With