 ;						       :init (setq markdown-command "multimarkdown"))
 ;;; .emacs ends here
 
-;(setq gofmt-command "goimports")
-
 (require 'ido)
 (ido-mode t)
-
-;; make ido display choices vertically
-(setq ido-separator "\n")
+(ido-vertical-mode t)
+;;(setq ido-decorations (quote ("\n🡒 " "" "\n   " "\n   ..." "" "..." " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]")))
+
+(defun ido-disable-line-truncation ()
+	(set (make-local-variable 'truncate-lines) nil))
+(add-hook 'ido-minibuffer-setup-hook 'ido-disable-line-truncation)
+
+;; C-n/p is more intuitive in vertical layout
+(defun ido-define-keys ()
+	(define-key ido-completion-map (kbd "C-n") 'ido-next-match)
+	(define-key ido-completion-map (kbd "C-p") 'ido-prev-match))
+(add-hook 'ido-setup-hook 'ido-define-keys)
 
 ;; display any item that contains the chars you typed
 (setq ido-enable-flex-matching t)
 
 (defalias 'list-buffers 'ibuffer) ; make ibuffer default
 
-;(require 'helm-config)
-
-(projectile-global-mode t)
+(projectile-mode t)
 
 (add-hook 'js2-mode-hook 'ac-js2-mode)
-(setq ac-js2-evaluate-calls t)
 
 (add-to-list 'auto-mode-alist (cons (rx ".js" eos) 'js2-mode))
-
-(desktop-save-mode 1)
-
-;; Docker file mode
-;; (add-to-list 'load-path "~/elisp/dockerfile-mode")
-
 
 (defun scroll-up-line-3 ()
   "Upcase the last letter of the word at point."

 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ac-js2-evaluate-calls t)
 '(ansi-color-faces-vector
	 [default default default italic underline success warning error])
 '(ansi-color-names-vector
	 ["black" "#d55e00" "#009e73" "#f8ec59" "#0072b2" "#cc79a7" "#56b4e9" "white"])
 '(blink-cursor-mode t)
 '(c-basic-offset 2)
 '(cursor-type (quote hbar))
 '(custom-enabled-themes (quote (wombat)))
 '(custom-safe-themes
	 (quote
		("745873c158637df642e3373f141436fe1ae9b717296b9c2c76fa6f2535a90eac" "ff75994a309305e51b2e38820a426050acd438992cd6b0647c2e3413ec0cb571" "169e68f2488144079fdc61fbbbd34643097e1ef1273b442c015159e9f7ad566e" "938d8c186c4cb9ec4a8d8bc159285e0d0f07bad46edf20aa469a89d0d2a586ea" "6de7c03d614033c0403657409313d5f01202361e35490a3404e33e46663c2596" "ed317c0a3387be628a48c4bbdb316b4fa645a414838149069210b66dd521733f" default)))
 '(fci-rule-color "#efefef")
 '(fill-nobreak-invisible nil)
 '(font-lock-global-modes (quote (not speedbar-mode)))
 '(font-use-system-font t)
 '(indent-tabs-mode t)
 '(js-indent-level 2)
 '(package-selected-packages
	 (quote
		(go-complete protobuf-mode dired-rainbow rainbow-mode web-mode multi-term go-impl go-errcheck go-autocomplete php-mode magit jade-mode ## ac-js2 list-packages-ext helm-projectile tide projectile markdown-mode js2-mode helm go-mode)))
 '(projectile-global-mode t)
 '(standard-indent 2)
 '(tab-stop-list (quote (2 4 6 8)))
 '(tab-width 2)
 '(tool-bar-mode nil)
 '(typescript-indent-level 2))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(font-lock-builtin-face ((t (:foreground "cyan" :weight normal))))
 '(font-lock-comment-face ((t (:foreground "forest green" :slant italic))))
 '(font-lock-constant-face ((t (:foreground "firebrick"))))
 '(font-lock-doc-face ((t (:inherit font-lock-comment-face))))
 '(font-lock-function-name-face ((t (:foreground "deep sky blue" :weight bold))))
 '(font-lock-keyword-face ((t (:foreground "blue" :weight normal))))
 '(font-lock-string-face ((t (:foreground "red"))))
 '(font-lock-type-face ((t (:foreground "cyan"))))
 '(font-lock-variable-name-face ((t (:foreground "dark orange" :weight light))))
 '(nobreak-space ((t (:background "magenta"))))
 '(whitespace-empty ((t nil)))
 '(whitespace-newline ((t (:foreground "white" :weight normal))))
 '(whitespace-space ((t (:foreground "black"))))
 '(whitespace-tab ((t (:foreground "#ffffff")))))

;; custom-set-faces was added by Custom.

			version-control t      ; Use version numbers on backups
			delete-old-versions t  ; Automatically delete excess backups
			kept-new-versions 20   ; how many of the newest versions to keep
			kept-old-versions 5)   ; and how many of the old

;(use-package markdown-mode
;						 :ensure t
;						 :commands (markdown-mode gfm-mode)
