  :i [remap newline] #'newline-and-indent
  :i "C-j"           #'+default/newline
 
- ;; (un)fold
- :n "TAB"    #'+fold/toggle
-
- ;; completion
- :i "C-SPC"   #'company-complete
-
  ;; don't leave visual mode after shifting
  :v  "<"     #'+evil/visual-dedent
  :v  ">"     #'+evil/visual-indent
 
  ;; evil-surround
  :v  "S"     #'evil-surround-region
- :o  "s"     #'evil-surround-edit
-
- :leader
- :desc "Search in file" :n "j"   #'swiper)
-
- ;; Windows
+ :o  "s"     #'evil-surround-edit)
+
+;; Consoles
+(map!
+ :leader :prefix ("c" . "Consoles")
+ :desc "Internal" :leader "c" #'my/pop-to-dedicated-term
+ :desc "External" :leader "e" #'my/open-external-term)
+
+;; Windows
 (map!
  :leader
  :prefix-map ("w" . "Windows")

;; Additional files
(load! "+alloy")

(defvar dedicated-name "*dedicated-term*"
  "The name of the dedicated terminal buffer")

(def-package! org
  :custom

 :localleader
 :desc "Toggle header/source" "t" #'ff-find-other-file)

;; Haskell
(map!
 :mode haskell-mode
 :localleader
 :desc "Hoogle query" "h" #'haskell-hoogle)
