Skip to content

Instantly share code, notes, and snippets.

@sky-y
Created October 20, 2012 08:01
Show Gist options
  • Save sky-y/3922629 to your computer and use it in GitHub Desktop.
Save sky-y/3922629 to your computer and use it in GitHub Desktop.
key-combo.elのグローバル設定
;; key-combo.el
;; http://d.hatena.ne.jp/uk-ar/20111208/1322572618
(require 'key-combo)
(key-combo-define-global (kbd "(") '("(" "(`!!')" "( `!!' )" "(("))
;; (key-combo-define-global (kbd "(") '("("))
;; (key-combo-define-global (kbd "(") '("("))
;; (key-combo-define-global (kbd "()") '("()"))
(key-combo-define-global (kbd "{") '("{" "{`!!'}" "{ `!!' }" "{{"))
(key-combo-define-global (kbd "{}") "{}")
;; (key-combo-define-global (kbd "\"") '("\"" "\"`!!`\"")) ; これだと動かない
(key-combo-define-global "\"" '("\"" "\"`!!'\"")) ; こっちだと動いた
(key-combo-define-global (kbd "'") '("'" "'`!!''"))
(key-combo-mode 1)
@uk-ar
Copy link

uk-ar commented Oct 20, 2012

(key-combo-define-global """ '(""" ""`!!'""))
ではどうでしょう?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment