 ;; FIXME: Make this activate only if one window is open
 ;; See http://bzg.fr/emacs-hide-mode-line.html
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; (defvar-local hidden-mode-line-mode nil)
 (define-minor-mode hidden-mode-line-mode
   "Minor mode to hide the mode-line in the current buffer."
   :init-value nil

;; by default. It is inconvenient when that mouse menu pops up when I don't need
;; it to. And actually I have never used that menu :P

;; Usage: C-x _ - _ 0 - - - - _ _ 0
;; Usage: C-x - - 0 _ - _ - - - - _ _ 0
(hydra-create "C-x"
  '(("_"   modi/font-size-incr  "Increase font size")
    ("-"   modi/font-size-decr  "Decrease font size")
    ("C-0" modi/font-size-reset "Reset font to default size"))
  modi-mode-map)

;; Toggle menu bar
;; Below bkp/ vars are used to restore the original frame size after disabling

 ("<f2>"        . modi/toggle-menu-bar)
 ;; F8 key can't be used as it launches the VNC menu
 ;; It can though be used with shift/ctrl/alt keys
 ("<S-f8>"      . presentation-mode)
 ;; Make Control+mousewheel do increase/decrease font-size
 ;; Source: http://ergoemacs.org/emacs/emacs_mouse_wheel_config.html
 ("<C-mouse-1>" . modi/font-size-reset) ; C + left mouse click
