 ;; make ido use completion-ignore-extensions
 (setq ido-ignore-extensions t)
 
-;; sr-speedbar
+;; sr-speedbar ;;
 (setq sr-speedbar-right-side nil)
 (setq speedbar-use-images nil)
 (setq speedbar-show-unknown-files t)

;; global hotkeys
(global-set-key (kbd "<f11>") 'toggle-frame-fullscreen)
(global-set-key (kbd "C-x C-g") 'magit-status)
(global-set-key (kbd "C-x M-g") 'magit-dispatch-popup)
(global-set-key (kbd "C-q") 'projectile-find-file)
(global-set-key (kbd "C-s") 'projectile-ripgrep)

;; jumping like in vim

(evil-define-minor-mode-key 'normal 'alchemist-hex-mode " I" 'alchemist-hex-info)
(evil-define-minor-mode-key 'normal 'alchemist-hex-mode " r" 'alchemist-hex-releases-at-point)
(evil-define-minor-mode-key 'normal 'alchemist-hex-mode " R" 'alchemist-hex-releases)
(evil-define-minor-mode-key 'normal 'alchemist-hex-mode " f" 'alchemist-hex-search)

;; CAREFUL: this is for evil-leader/set-local-mode, which isn't merged yet,
;; see: https://github.com/cofi/evil-leader/pull/35

;; (defun alchemist-hex-local-keys (&rest args)
;;  (evil-leader/set-local-key
;;    "i" 'alchemist-hex-info-at-point))
;; (advice-add 'alchemist-hex-mode :after #'alchemist-hex-local-keys)

;; typescript, tide ;;

(defun setup-tide-mode ()
  (interactive)
