 ;; Make Helm window taller for the following Helm functions
 (mapc (lambda (func)
         (advice-add func :around #'danylo/set-helm-window-height))
-      '(helm-imenu helm-imenu-in-all-buffers))
+      '(helm-imenu helm-imenu-in-all-buffers helm-buffers-list))
 
 (defun danylo/helm-swoop-split-window-function (buf &rest _args)
   "Show Helm Swoop at bottom of current window, with the correct

     (lambda (mode-symbol)
       (progn
         (message "Enabling: %s" mode-symbol)
         (funcall mode-symbol +1)))
     danylo/mode-list-cache)
    (setq danylo/mode-list-cache remaining-modes)))


  :init (setq minimap-width-fraction 0.1
              minimap-minimum-width 15
              minimap-hide-fringes t))

;;;; Turbo mode for minimal-latency editing

(defvar danylo/turbo-on nil
  "State variable indicating if turbo editing mode is on.")

(defun danylo/turbo-toggle ()
  "Toggle turning off all heavy minor modes, for fast typing."
  (interactive)
  (if danylo/turbo-on
      (progn
        (danylo/enable-my-minor-modes)
        (danylo/print-in-minibuffer
         (format "%s Turbo OFF" (danylo/fa-icon "rocket"))))
    (progn
      (danylo/disable-my-minor-modes)
      (danylo/print-in-minibuffer
       (format "%s Turbo ON" (danylo/fa-icon "rocket")))))
  (setq danylo/turbo-on (not danylo/turbo-on)))

(general-define-key
 "C-c e t" 'danylo/turbo-toggle)

;;; ..:: Window management ::..

