 
 ;; Hydra -> Transient keybindings
 
-
 ;; From doom evil config
 (use-package evil-goggles)
 ;; evil-nerd-commenter

  :init
  (ivy-rich-mode 1))

;; helpful -> enhaced help

(use-package org
  :defer t)

(use-package magit
  :defer t)

  :config
  (setq which-key-idle-delay 0.3))

(global-set-key (kbd "<escape>") 'keyboard-escape-quit)

(use-package general)
(general-create-definer icot/leader-keys
			:keymaps '(normal insert visual emacs)
			:prefix "SPC"
			:global-prefix "C-SPC")

(icot/leader-keys
  "b" '(:ignore t :which-key "buffer")
  "bb" '(counsel-ibuffer :which-key "counsel-ibuffer")
  "e" '(:ignore t :which-key "eval")
  "eb" '(eval-buffer :which-key "eval buffer")
  "el" '(eval-last-sexp :which-key "eval last sexp")
  "f" '(:ignore t :which-key "file")
  "ff" '(counsel-find-file :which-key "find file")
  "fP" '((lambda () ((interactive)
		     (counsel-find-file nil "~/.emacs.custom"))) :which-key "Config folder") ;; FIXME
  "g" '(:ignore t :which-key "git")
  "gg" '(magit-status :which-key "magit-status")
  "h" '(:ignore t :which-key "help")
  "hk" '(helpful-key :which-key "help key")
  "hf" '(helpful-function :which-key "help function")
  "hv" '(helpful-variable :which-key "help variable")
  "p" '(:ignore t :which-key "projectile")
  "pp" '(projectile-switch-project :which-key "projectile-switch-project")
  "t" '(:ignore t :which-key "toggles")
  "tt" '(counsel-load-theme :which-key "choose theme")
  "w" '(:ignore t :which-key "window")
  "wh" '(evil-window-left :which-key "switch to left window")
  "wj" '(evil-window-down :which-key "switch to bottom window")
  "wk" '(evil-window-up :which-key "switch to top window")
  "wl" '(evil-window-right :which-key "switch to right window")
  "wH" '(evil-window-move-far-left :which-key "move window to the left")
  "wJ" '(evil-window-move-very-bottom :which-key "move window to bottom")
  "wK" '(evil-window-move-very-top :which-key "move window to the top")
  "wL" '(evil-window-move-far-right :which-key "move window to the right")
  "w_" '(evil-window-split :which-key "window split horizontal")
  "w|" '(evil-window-vsplit :which-key "window split vertical")
  "wn" '(evil-window-new :which-key "new window")
  ";" '(counsel-M-x :which-key "counsel-M-x")
  "/" '(counsel-rg :which-key "counsel-rg") ;; FIXME: effective directory
  ":" '(eval-expression :which-key "eval-expresion"))
 
; (define-key keymap key def)

