Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Ivy-mode not loading automaticly! #87

Open
co-key opened this issue Jun 25, 2022 · 2 comments
Open

FIX: Ivy-mode not loading automaticly! #87

co-key opened this issue Jun 25, 2022 · 2 comments

Comments

@co-key
Copy link

co-key commented Jun 25, 2022

Hi Daviwil,

First thank you for the great vid's and contributions. I'm new to emacs and this will explain al lot and help me starting.

I heard you complaining about the ivy-mode not loading automaticly, as it should. I had a look in it and found the problem.

In your init.el file you set the use-package ivy... within the same parentesies you find the '(ivy-mode 1)' call. If you'll take these out off the parentesies and put hem below it does work.

So the code should changed to:

(use-package ivy
  :diminish
  :bind (("C-s" . swiper)
         :map ivy-minibuffer-map
         ("TAB" . ivy-alt-done)
         ("C-l" . ivy-alt-done)
         ("C-j" . ivy-next-line)
         ("C-k" . ivy-previous-line)
         :map ivy-switch-buffer-map
         ("C-k" . ivy-previous-line)
         ("C-l" . ivy-done)
         ("C-d" . ivy-switch-buffer-kill)
         :map ivy-reverse-i-search-map
         ("C-k" . ivy-previous-line)
         ("C-d" . ivy-reverse-i-search-kill))
  :config
  ;; (ivy-mode 1) ** Wrong placement **
  )

(ivy-mode 1) ;; ** Right placement, it's loading now at startup. **

I'm not much further in you're vid's but I see you have this issue at more places in you're file. This might help!

@sngbd
Copy link

sngbd commented Aug 6, 2022

I think you could also do it this way :init (ivy-mode 1)

@brucejuz
Copy link

In my Ubuntu,
It should change to
:init (ivy-mode 1)
And the :config in 'ivy' must be deleted, otherwise when I use ivy-rich mode, it will not work.

And in order to make ivy-rich work, I must also use counsel package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants