 	 :map helm-map
 	 ("<tab>" . helm-execute-persistent-action))
   :init (setq helm-display-buffer-default-height
-	      (1+ danylo/num-completion-candidates)
+	      danylo/num-completion-candidates
 	      helm-mode-line-string ""
+	      helm-comp-read-mode-line ""
 	      helm-buffer-max-length 30
 	      helm-buffers-truncate-lines nil
-	      helm-split-window-in-side-p nil
+	      helm-split-window-in-side-p t
 	      helm-move-to-line-cycle-in-source t
 	      helm-echo-input-in-header-line nil
 	      helm-display-header-line nil

(add-hook 'before-save-hook 'delete-trailing-whitespace)

;; Activate nlinum-mode (line numbers on the left)
(general-define-key
 "C-x n l" 'nlinum-mode)

;;;; Section delimiters


	 (if (not buffer-read-only) (toggle-read-only)))
  (defun danylo/switch-to-term-char-mode () (interactive) (term-char-mode)
	 (if (buffer-read-only) (toggle-read-only)))
  (define-key term-raw-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
  (define-key term-raw-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
  (define-key term-mode-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
  (define-key term-mode-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
  ;; Copy/paste native Emacs keystrokes
  (define-key term-raw-map (kbd "C-k") 'term-send-raw)
  (define-key term-raw-map (kbd "C-y") 'term-paste)
