-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
84 lines (69 loc) · 2.08 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
(setq gc-cons-threshold 64000000)
(add-hook 'after-init-hook #'(lambda ()
;; Restore after startup
(setq gc-cons-threshold 800000)))
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(setq custom-file (expand-file-name "customize.el" user-emacs-directory))
(load custom-file)
(load-theme 'wombat t)
(setq calendar-week-start-day 1)
(setq backup-inhibited t)
(setq inhibit-startup-screen t
initial-scratch-message ";;; -*- lexical-binding: t; -*-\n\n")
(setq frame-inhibit-implied-resize t)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(column-number-mode 1)
(show-paren-mode 1)
;;(tooltip-mode -1)
;;(menu-bar-mode -1)
;;(setq display-line-numbers-type 't)
(setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq confirm-nonexistent-file-or-buffer nil)
(fset 'yes-or-no-p 'y-or-n-p)
(set-language-environment "UTF-8")
(setq user-full-name "Andreas Wilfer"
user-mail-address "[email protected]")
(add-to-list 'load-path (expand-file-name "elisp" user-emacs-directory))
(use-package addutils
:bind ("M-g M-g" . addutils-goto-line-relative))
(global-set-key [f5] 'compile)
(global-set-key [f9] 'recompile)
(global-set-key [f12] 'shell-command)
(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))
(use-package paredit
:ensure t
:hook
(emacs-lisp-mode . enable-paredit-mode))
(use-package paren
:ensure nil
:init
(setq show-paren-delay 0)
:config
(show-paren-mode 1))
(use-package evil
:ensure t
:init
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
(setq evil-want-keybinding nil)
(setq evil-vsplit-window-right t)
(setq evil-split-window-below t)
;;(evil-mode)
:config
(evil-set-undo-system 'undo-redo))
(use-package evil-collection
:ensure t
:after evil
:config
(setq evil-collection-mode-list '(dashboard dired ibuffer))
;;(evil-collection-init)
)
(use-package evil-tutor
:ensure t)
(add-to-list 'major-mode-remap-alist '(perl-mode . cperl-mode))