 
 (use-package emojify
   :ensure t
-  :commands emojify-mode global-emojify-mode
-  :init
-  (setq emojify-emojis-dir (concat user-emacs-directory ".cache/emojis"))
-  (add-hook 'text-mode-hook 'global-emojify-mode))
+  :hook (text-mode . emojify-mode)
+  :config
+  (setq emojify-emojis-dir (concat user-emacs-directory ".cache/emojis")))
 
 (use-package tabbar
   :ensure t
-  :commands tabbar-mode
-  :init
-  (add-hook 'after-init-hook 'tabbar-mode)
+  :hook (after-init . tabbar-mode)
   :config
   (setq tabbar-use-images nil))
 

(use-package hl-line
  :hook (prog-mode . hl-line-mode)
  :config
  (setq hl-line-sticky-flag        nil
        global-hl-line-sticky-flag nil))

(use-package solaire-mode
  :ensure t
  :commands solaire-mode turn-on-solaire-mode solaire-mode-in-minibuffer)

(use-package all-the-icons
  :ensure t)

(use-package all-the-icons-dired
  :ensure t
  :diminish all-the-icons-dired-mode
  :commands all-the-icons-dired-mode
  :init
  (add-hook 'dired-mode-hook 'all-the-icons-dired-mode))

(use-package highlight-thing
  :ensure t
  :diminish highlight-thing-mode
  :commands highlight-thing-mode
  :init
  (add-hook 'prog-mode-hook 'highlight-thing-mode)
  :config
  (setq highlight-thing-delay-seconds 0
        highlight-thing-exclude-thing-under-point t


(use-package volatile-highlights
  :ensure t
  :hook (after-init . volatile-highlights-mode))

(use-package git-gutter-fringe
  :ensure t
  :hook (after-init . git-gutter-mode)
  :config
  (require 'git-gutter)
  (setq git-gutter-fr:side 'left-fringe
        git-gutter:separator-sign "|"
        git-gutter:lighter ""
        git-gutter:update-interval 1)
  (set-face-foreground 'git-gutter:separator "yellow")
  (fringe-helper-define 'git-gutter-fr:modified nil
                        "X"
