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 22:05:28 +00:00
|
|
|
;;; Line Wrapping
|
|
|
|
(global-visual-line-mode 1) ; Prevent wrapping of words
|
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;;; evil - A Vi Layer inside of Emacs
|
2022-11-08 17:53:07 +00:00
|
|
|
(use-package evil
|
2022-11-08 22:05:28 +00:00
|
|
|
:custom
|
|
|
|
(evil-want-integration t) ; Same as above
|
|
|
|
(evil-undo-system 'undo-fu) ; Set the undo/redo system
|
2022-11-08 17:53:07 +00:00
|
|
|
:config
|
|
|
|
(evil-mode 1))
|
|
|
|
|
|
|
|
;; 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 22:05:28 +00:00
|
|
|
;; general - More convenient key definitions for Emacs
|
|
|
|
(use-package general
|
|
|
|
:config
|
|
|
|
(general-evil-setup t)
|
|
|
|
:init
|
|
|
|
(general-create-definer diancite/leaders
|
2022-11-09 07:02:57 +00:00
|
|
|
:prefix leader-key))
|
2022-11-08 22:05:28 +00:00
|
|
|
|
|
|
|
(diancite/leaders
|
|
|
|
:keymaps 'normal
|
2022-11-09 07:02:57 +00:00
|
|
|
"f" '(:wk "File")
|
|
|
|
"n" '(:wk "Org")
|
|
|
|
"m" '(:wk "Magit")
|
|
|
|
"w" '(:wk "Evil")
|
|
|
|
"p" '(:wk "Projects"))
|
2022-11-08 22:05:28 +00:00
|
|
|
|
|
|
|
(set-face-foreground 'vertical-border (face-background 'default))
|
|
|
|
|
2022-11-08 17:53:06 +00:00
|
|
|
;; Provide this file to init.el
|
|
|
|
(provide 'editor)
|