 (setq-default indent-tabs-node nil)
 
 (setq-default tab-always-indent 'complete)
-
-;; (use-package powerline
-;;  :config
-;;  (powerline-default-theme))
 
 (defun my/show-formfeed-as-line ()
   "Display formfeed ^L char as line."

(setq window-resize-pixelwise t)
(setq frame-resize-pixelwise t)

;;; ---------- Company mode ----------

;; (use-package company
;;   :bind (:map company-active-map
;; 	      ("C-n" . company-select-next)
;; 	      ("C-p" . company-select-previous))
;;   :config
;;   (setq company-idle-delay 0.3)
;;   (global-company-mode t))

;;; ---------- Completion ----------

(unless (package-installed-p 'vertico)
  (package-install 'vertico))

(vertico-mode t)

(unless (package-installed-p 'consult)
 (package-install 'consult))

(global-set-key [rebind switch-to-buffer] #'consult-buffer)

(setq read-buffer-completion-ignore-case t
      read-file-name-completion-ignore-case t
      completion-ignore-case t)

;;; ---------- LSP support ----------

(unless (package-installed-p 'eglot)
  (package-install 'eglot))

(add-hook 'prog-mode-hook #'eglot-ensure)

(add-hook 'prog-mode-hook #'flymake-mode)

;;; ---------- Source control ----------

(unless (package-installed-p 'magit)

  :config
  (org-roam-setup))

;;; Emacs server

(server-start)
