initial config
This commit is contained in:
parent
d56d5c390d
commit
12e17b0861
1 changed files with 65 additions and 0 deletions
65
init.el
Normal file
65
init.el
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
(setq custom-file "./custom")
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(global-display-line-numbers-mode 1)
|
||||
(tool-bar-mode 0)
|
||||
(menu-bar-mode 0)
|
||||
(column-number-mode 1)
|
||||
(setq select-enable-clipboard t)
|
||||
|
||||
(setq make-backup-files nil
|
||||
auto-save-default nil)
|
||||
|
||||
;; keys
|
||||
(global-set-key (kbd "C-x C-c") 'comment-line)
|
||||
|
||||
;; packages
|
||||
(require 'package)
|
||||
(setq package-archives
|
||||
'(("melpa" . "https://melpa.org/packages/")
|
||||
("gnu" . "https://elpa.gnu.org/packages/")))
|
||||
(package-initialize)
|
||||
(unless package-archive-contents (package-refresh-contents))
|
||||
|
||||
;; install use-package if missing
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-install 'use-package))
|
||||
|
||||
;; make use-package auto-install by default
|
||||
(setq use-package-always-ensure t)
|
||||
(require 'use-package)
|
||||
|
||||
(setq evil-want-C-u-scroll t
|
||||
evil-want-keybinding nil
|
||||
evil-want-integration t
|
||||
evil-undo-system 'undo-tree)
|
||||
|
||||
(use-package undo-tree
|
||||
:config
|
||||
(global-undo-tree-mode))
|
||||
|
||||
(use-package evil
|
||||
:config
|
||||
(evil-mode 1))
|
||||
|
||||
(use-package evil-collection
|
||||
;; :after evil
|
||||
:config
|
||||
(evil-collection-init))
|
||||
|
||||
(use-package zoom-window
|
||||
:ensure t
|
||||
:config
|
||||
(setq zoom-window-mode-line-color "DarkGreen")
|
||||
:bind ("C-x C-z" . zoom-window-zoom))
|
||||
|
||||
(use-package doom-themes
|
||||
:config
|
||||
;; Global settings (defaults)
|
||||
(setq doom-themes-enable-bold t
|
||||
doom-themes-enable-italic t)
|
||||
(load-theme 'doom-laserwave t)
|
||||
;; Enable flashing mode-line on errors
|
||||
(doom-themes-visual-bell-config)
|
||||
;; Corrects (and improves) org-mode's native fontification.
|
||||
(doom-themes-org-config))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue