This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
dianciemacs/lisp/editor.el

45 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2022-11-08 17:53:06 +00:00
;;; This file customizes Emacs' editor
2022-11-08 17:53:07 +00:00
;; Quit input dialogues after pressing escape once
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
2022-11-08 17:53:07 +00:00
;;; evil - A Vi Layer inside of Emacs
(use-package evil
:init
(setq evil-want-keybinding nil ; Make room for evil-collection
evil-want-integration t ; Same as above
evil-undo-system 'undo-fu) ; Set the undo/redo system
:config
(evil-mode 1))
;; evil-collection - a collection of keybindings for evil-mode
(use-package evil-collection
:after evil ; In order to recognize evil-want-... being set
:init
(evil-collection-init)) ; Enable the evil-collection keybinds
;; undo-fu, used by evil for undo/redo functionality
(use-package undo-fu)
2022-11-08 17:53:07 +00:00
2022-11-08 17:53:07 +00:00
;; Disable the creation of files ending with '~' (backup files)
(setq make-backup-files nil)
2022-11-08 17:53:07 +00:00
;;; Themes
;; Customize doom-themes
(setq doom-themes-enable-bold t
doom-themes-enable-italic t)
(doom-themes-treemacs-config) ; Enable theming of treemacs
(doom-themes-org-config) ; And org-mode
;; Set theme to doom-tokyo-night, Dianicemacs' default
(load-theme 'doom-tokyo-night t)
2022-11-08 17:53:06 +00:00
2022-11-08 17:53:07 +00:00
;;; Keybinds
;; Enable which-key
(which-key-mode)
(setq which-key-idle-delay 0.1) ; Make the popup appear faster
(setq which-key-separator " - " ) ; Change the seperator which-key uses
2022-11-08 17:53:06 +00:00
;; Provide this file to init.el
(provide 'editor)