Commit 2c18f147 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Fix counsel-mode startup, it wasn't being enabled

Also set new counsel key bindings
parent 85aac65a
......@@ -465,12 +465,13 @@ You may find other key bindings inside use-package statements."
("M-y" . ivy-next-line) ; to use within `counsel-yank-pop'
("C-s" . ivy-next-line)
("C-r" . ivy-previous-line))
:init
(ivy-mode 1)
:config
(setq ivy-count-format ""
ivy-height 7
ivy-use-virtual-buffers t
ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
(ivy-mode 1))
ivy-re-builders-alist '((t . ivy--regex-fuzzy))))
(use-package swiper
:ensure t
......@@ -484,10 +485,16 @@ You may find other key bindings inside use-package statements."
(use-package counsel
:ensure t
:diminish ""
:bind (("C-x b" . counsel-switch-buffer))
:bind (;; ("C-x b" . counsel-switch-buffer)
("C-c f" . counsel-file-jump)
("C-c g" . counsel-rg)
("C-c c" . counsel-org-capture))
:bind* (([remap pop-to-mark-command] . counsel-mark-ring))
:init
(counsel-mode 1)
:config
(counsel-mode 1))
(setq counsel-rg-base-command
"rg --hidden --with-filename --no-heading --line-number --color never %s"))
(use-package dired
:defer
......@@ -667,7 +674,7 @@ You may find other key bindings inside use-package statements."
(ispell-change-dictionary "american")))
(use-package grep
:bind ("C-c g" . rgrep)
;; :bind ("C-c g" . rgrep) ; see counsel configuration
:config
(add-to-list 'grep-find-ignored-directories ".tox")
(add-to-list 'grep-find-ignored-files "*.orig"))
......@@ -965,7 +972,7 @@ You may find other key bindings inside use-package statements."
(use-package org
:ensure org-plus-contrib
:bind (("C-c a" . org-agenda)
("C-c c" . org-capture)
;; ("C-c c" . org-capture) ; see counsel configuration
("C-c l" . org-store-link)
("C-c t" . org-clock-goto)
("C-c s" . org-occur-in-agenda-files))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment