;; Disable auto-save files (#file#).
(setq auto-save-default nil)

;; Disable backup files (file~).
(setq make-backup-files nil)

;; Disable lockfiles (.#file)
(setq create-lockfiles nil)

;; Disable startup splash screen
(setq inhibit-startup-message t) 
(setq initial-scratch-message nil)

;; Remove noisy UI
(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)

;; Line numbers
(global-display-line-numbers-mode 1)
(setq display-line-numbers 'relative)

;; Initialize the built-in package manager.
;; Add nongnu just in case
(require 'package)
(add-to-list 'package-archives
             '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
(package-initialize)

;; Download Gruber Darker if it is not installed yet.
(unless (package-installed-p 'gruber-darker-theme)
  (package-refresh-contents)
  (package-install 'gruber-darker-theme))

;; Enable the theme without a confirmation prompt.
(load-theme 'gruber-darker t)

;; Display a greeting after startup.
(add-hook 'emacs-startup-hook
          (lambda () (message "Hello world")))
(custom-set-variables
 ;; custom-set-variables 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.
 '(package-selected-packages '(gruber-darker-theme tuareg cmake-mode)))
(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.
 )
