38 lines
1.1 KiB
EmacsLisp
38 lines
1.1 KiB
EmacsLisp
(setq-default fill-column 80)
|
|
(setq-default tab-width 2)
|
|
(setq ring-bell-function 'ignore)
|
|
|
|
;; Display line numbers in every buffer
|
|
(global-display-line-numbers-mode 1)
|
|
(setq display-line-numbers-type 'relative)
|
|
(blink-cursor-mode 0)
|
|
(global-hl-line-mode 1)
|
|
|
|
;; Turn off some unneeded UI elements
|
|
(menu-bar-mode -1)
|
|
(tool-bar-mode -1)
|
|
(scroll-bar-mode -1)
|
|
|
|
(add-to-list 'default-frame-alist
|
|
'(font . "Mononoki Nerd Font-14"))
|
|
|
|
;; Initialize straight package manager
|
|
(defvar bootstrap-version)
|
|
(let ((bootstrap-file
|
|
(expand-file-name
|
|
"straight/repos/straight.el/bootstrap.el"
|
|
(or (bound-and-true-p straight-base-dir)
|
|
user-emacs-directory)))
|
|
(bootstrap-version 7))
|
|
(unless (file-exists-p bootstrap-file)
|
|
(with-current-buffer
|
|
(url-retrieve-synchronously
|
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
|
'silent 'inhibit-cookies)
|
|
(goto-char (point-max))
|
|
(eval-print-last-sexp)))
|
|
(load bootstrap-file nil 'nomessage))
|
|
|
|
(straight-use-package 'material-theme)
|
|
(load-theme 'material t)
|