[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 98703c4 27/87: Add Swiper keys. Issue #4
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 98703c4 27/87: Add Swiper keys. Issue #445 |
Date: |
Wed, 14 Apr 2021 18:47:01 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 98703c40824e73c69d7f9f48877fcd0290a118b4
Author: Fidler <matthew.fidler@gmail.com>
Commit: Fidler <matthew.fidler@gmail.com>
Add Swiper keys. Issue #445
---
ergoemacs-themes.el | 36 ++++++++++++++++++++++++++++++++----
1 file changed, 32 insertions(+), 4 deletions(-)
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index 355843f..7ac044a 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -244,6 +244,7 @@
(global-set-key (kbd "C-S-z") '(redo undo-tree-redo ergoemacs-redo))
(global-set-key (kbd "<S-delete>") 'ergoemacs-cut-line-or-region)
(global-set-key (kbd "C-c <ergoemacs-timeout>")
'ergoemacs-copy-line-or-region)
+ (global-set-key (kbd "C-S-c") ("C-c" :normal))
(global-set-key (kbd "<C-insert>") 'ergoemacs-copy-line-or-region)
(global-set-key (kbd "C-S-v") 'ergoemacs-paste-cycle)
@@ -325,6 +326,7 @@
(global-set-key (kbd "C-x k") nil)
(global-set-key (kbd "C-w") 'ergoemacs-close-current-buffer)
(global-set-key (kbd "C-x <ergoemacs-timeout>")
'ergoemacs-cut-line-or-region)
+ (global-set-key (kbd "C-S-x") ("C-x" :normal))
(global-set-key (kbd "C-x C-b") 'ibuffer)
(global-set-key (kbd "C-y") '(redo undo-tree-redo ergoemacs-redo) "↷ redo")
@@ -686,7 +688,9 @@
;; Fixed Component; Note that <timeout> is the actual function.
(global-set-key (kbd "C-c <ergoemacs-timeout>")
'ergoemacs-copy-line-or-region)
+ (global-set-key (kbd "C-S-c") ("C-c" :normal))
(global-set-key (kbd "C-x <ergoemacs-timeout>")
'ergoemacs-cut-line-or-region)
+ (global-set-key (kbd "C-S-x") ("C-x" :normal))
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-S-z") '(redo undo-tree-redo ergoemacs-redo))
(global-set-key (kbd "C-y") '(redo undo-tree-redo ergoemacs-redo))
@@ -1086,8 +1090,6 @@
(global-set-key [remap ido-magic-forward-char] 'ido-next-match)
(global-set-key [remap ido-magic-backward-char] 'ido-prev-match)))
-
-
(ergoemacs-component ergoemacs-remaps ()
"Remaps for ergoemacs-mode"
(when undo-tree-mode
@@ -1110,6 +1112,28 @@
(global-set-key [remap ergoemacs-print-buffer-confirm]
'pr-interface)))
+(ergoemacs-component ergoemacs-swiper ()
+ "Swiper component"
+ (when ivy-mode
+ (setq ivy-use-virtual-buffers t)
+ (global-set-key [remap isearch-forward] 'swiper)
+ ;; (global-set-key (kbd "C-c C-r") 'ivy-resume)
+ ;; (global-set-key (kbd "<f6>") 'ivy-resume)
+ (global-set-key [remap execute-extended-command] 'counsel-M-x)
+ (global-set-key [remap find-file] 'counsel-find-file)
+ (global-set-key [remap describe-function] 'counsel-describe-function)
+ (global-set-key [remap describe-variable] 'counsel-describe-variable)
+ (global-set-key [remap find-library] 'counsel-find-library)
+ (global-set-key [remap info-lookup-symbol] 'counsel-info-lookup-symbol)
+ ;; (global-set-key (kbd "<f2> u") 'counsel-unicode-char)
+ ;; (global-set-key (kbd "C-c g") 'counsel-git)
+ (global-set-key [remap vc-git-grep] 'counsel-git-grep)
+ ;; (global-set-key (kbd "C-c k") 'counsel-ag)
+ (global-set-key [remap locate] 'counsel-locate)
+ ;; (global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
+ ;; (define-key read-expression-map (kbd "C-r") 'counsel-expression-history)
+ ))
+
(ergoemacs-component ergoemacs-banish-shift ()
"Banish Shift Combinations with <apps> SPC"
:variable-reg ""
@@ -1855,6 +1879,9 @@
(ergoemacs-theme lvl0 ()
"CUA-mode style"
(global-set-key (kbd "C-c <ergoemacs-timeout>")
'ergoemacs-copy-line-or-region)
+ (global-set-key (kbd "C-S-c") ("C-c" :normal))
+ (global-set-key (kbd "C-x <ergoemacs-timeout>")
'ergoemacs-cut-line-or-region)
+ (global-set-key (kbd "C-S-x") ("C-x" :normal))
(global-set-key (kbd "<C-insert>") 'ergoemacs-copy-line-or-region)
(global-set-key (kbd "C-S-v") 'ergoemacs-paste-cycle)
@@ -1977,11 +2004,12 @@
ido-prev-next-instead-of-left-right
join-line
save-options-on-exit
- isearch-arrows)
+ isearch-arrows
+ ergoemacs-swiper)
:options-menu '(("Menu/Apps Key" (apps apps-apps apps-punctuation
apps-toggle))
("Function Keys" (fn-keys f2-edit))
("Helm Options" (helm-switch-sources helm-find-files))
- ("Remaps" (ido-remaps helm-remaps multiple-cursors-remaps
icy-reclaim))
+ ("Remaps" (ido-remaps helm-remaps multiple-cursors-remaps
icy-reclaim ergoemacs-swiper))
("Extreme ErgoEmacs" (guru no-backspace
ergoemacs-banish-shift))
("Standard Keys" (standard-fixed fixed-bold-italic quit
move-and-transpose-lines alt-backspace-is-undo))
("Keys during Key Sequence" (f2-edit apps-swap
backspace-del-seq))
- [elpa] externals/ergoemacs-mode f12edbb 02/87: Maybe Fix issue #426, (continued)
- [elpa] externals/ergoemacs-mode f12edbb 02/87: Maybe Fix issue #426, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode f10eecc 01/87: Fix overriding keymap. Needs to be expanded., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 27f60cc 11/87: Will eat commands for self insert like <apps> e t, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode b3df015 17/87: Make sure changing local variables doesn't affect save state, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode a1dd7a7 09/87: Eat command prefixes that were intercepted by the timer, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode f7a68f6 29/87: Add back Ctrl+Shift+c and Ctrl+Shift+x., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 59cb758 08/87: Change to an idle timer for more stability, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 07ef724 22/87: Change ergoemacs-override-keymap key bindings., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode a75a338 07/87: Add ergoemacs start prefix correctly, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode f3dd332 23/87: Revert set-map-list, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 98703c4 27/87: Add Swiper keys. Issue #445,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode 01197b3 13/87: Add undefined handling, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 4a8de51 19/87: The image is created for the current theme., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 176af55 10/87: Take out message, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 6051ab5 25/87: Remove unicode fonts setup. Refix Issue #408, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 87fe85a 36/87: No longer try to ensure undo-tree and persistent-soft are installed, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode b4b5241 30/87: Add back ergoemacs-style shift-translation, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 1421a65 06/87: Change how key prefixes are handled., Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 59235bb 12/87: Allow ergoemacs-mode to handle ending <apps> keys, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode 27c6245 05/87: Remove helm-do-grep. Its no longer found in helm, Stefan Monnier, 2021/04/14
- [elpa] externals/ergoemacs-mode b70d9fe 43/87: Fix back quote., Stefan Monnier, 2021/04/14