{"action":"created","issue":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/991","repository_url":"https://api.github.com/repos/abo-abo/swiper","labels_url":"https://api.github.com/repos/abo-abo/swiper/issues/991/labels{/name}","comments_url":"https://api.github.com/repos/abo-abo/swiper/issues/991/comments","events_url":"https://api.github.com/repos/abo-abo/swiper/issues/991/events","html_url":"https://github.com/abo-abo/swiper/issues/991","id":227454420,"number":991,"title":"Closing swiper/counsel-M-x with ESC","user":{"login":"sho-87","id":5199715,"avatar_url":"https://avatars3.githubusercontent.com/u/5199715?v=3","gravatar_id":"","url":"https://api.github.com/users/sho-87","html_url":"https://github.com/sho-87","followers_url":"https://api.github.com/users/sho-87/followers","following_url":"https://api.github.com/users/sho-87/following{/other_user}","gists_url":"https://api.github.com/users/sho-87/gists{/gist_id}","starred_url":"https://api.github.com/users/sho-87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sho-87/subscriptions","organizations_url":"https://api.github.com/users/sho-87/orgs","repos_url":"https://api.github.com/users/sho-87/repos","events_url":"https://api.github.com/users/sho-87/events{/privacy}","received_events_url":"https://api.github.com/users/sho-87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-09T18:20:51Z","updated_at":"2017-07-05T18:48:43Z","closed_at":null,"body":"I use evil mode and have tried to setup ESC to close things like minibuffers with a single push (usually you need like 3 of them, which gets annoying):\r\n\r\n```\r\n(defun minibuffer-keyboard-quit ()\r\n  \"Abort recursive edit.\r\nIn Delete Selection mode, if the mark is active, just deactivate it;\r\nthen it takes a second \\\\[keyboard-quit] to abort the minibuffer.\"\r\n  (interactive)\r\n  (if (and delete-selection-mode transient-mark-mode mark-active)\r\n      (setq deactivate-mark  t)\r\n    (when (get-buffer \"*Completions*\") (delete-windows-on \"*Completions*\"))\r\n    (abort-recursive-edit)))\r\n\r\n(define-key evil-normal-state-map [escape] 'keyboard-quit)\r\n(define-key evil-visual-state-map [escape] 'keyboard-quit)\r\n(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit)\r\n(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit)\r\n(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit)\r\n(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit)\r\n(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit)\r\n```\r\n\r\nHowever, this doesn't seem to work when using `swiper` or `counsel-M-x`\r\n\r\nIs there something I need to add/change so that ESC correctly closes them with a single press?\r\n\r\nMy current init file is [here](https://github.com/sho-87/dotfiles/blob/master/emacs/init.el) if that helps"},"comment":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/comments/313192595","html_url":"https://github.com/abo-abo/swiper/issues/991#issuecomment-313192595","issue_url":"https://api.github.com/repos/abo-abo/swiper/issues/991","id":313192595,"user":{"login":"abo-abo","id":2937359,"avatar_url":"https://avatars0.githubusercontent.com/u/2937359?v=3","gravatar_id":"","url":"https://api.github.com/users/abo-abo","html_url":"https://github.com/abo-abo","followers_url":"https://api.github.com/users/abo-abo/followers","following_url":"https://api.github.com/users/abo-abo/following{/other_user}","gists_url":"https://api.github.com/users/abo-abo/gists{/gist_id}","starred_url":"https://api.github.com/users/abo-abo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abo-abo/subscriptions","organizations_url":"https://api.github.com/users/abo-abo/orgs","repos_url":"https://api.github.com/users/abo-abo/repos","events_url":"https://api.github.com/users/abo-abo/events{/privacy}","received_events_url":"https://api.github.com/users/abo-abo/received_events","type":"User","site_admin":false},"created_at":"2017-07-05T18:48:43Z","updated_at":"2017-07-05T18:48:43Z","body":"@SP00KYB00G13 Maybe your config is different from mine, I still can't reproduce. I try it with `counsel-M-x` and `swiper`."}}
{"actor":{"display_login":"abo-abo"}}